Grep lines not starting with ; or [ first ^ for start, second ^ for "not"

grep "^[^;[]" /etc/php.ini | less

Andreas Wagner