3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "\n** warning about bad pattern AND bad parameter: **\n"; var_dump(preg_match('bad pattern', null)); echo "\n** warning about bad pattern only: **\n"; var_dump(preg_match('bad pattern', '')); echo "\n** suppressed warnings: **\n"; var_dump(@preg_match('bad pattern', ''));
Output for git.master_jit, git.master, rfc.property-hooks
** warning about bad pattern AND bad parameter: ** Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/5YI6t on line 4 Warning: preg_match(): Delimiter must not be alphanumeric, backslash, or NUL in /in/5YI6t on line 4 bool(false) ** warning about bad pattern only: ** Warning: preg_match(): Delimiter must not be alphanumeric, backslash, or NUL in /in/5YI6t on line 7 bool(false) ** suppressed warnings: ** bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
55.3 ms | 406 KiB | 5 Q