3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match("/foo\0bar/", "foo\0bar"));
Output for 5.4.7 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Null byte in regex in /in/Kj2aI on line 3 bool(false)
Output for hhvm-3.10.0 - 3.13.2
Warning: No ending delimiter '/' found: [/foo] in /in/Kj2aI on line 3 bool(false)
Output for 4.3.11 - 5.4.6
Warning: preg_match(): No ending delimiter '/' found in /in/Kj2aI on line 3 bool(false)
Output for 4.3.0 - 4.3.10
Warning: No ending delimiter '/' found in /in/Kj2aI on line 3 bool(false)