3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match_all('#\bпхп|php\b#u', 'пхп php', $m); print_r($m); print_r(preg_last_error());
Output for 5.3.4 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 0
Output for 5.2.0 - 5.3.3
Array ( [0] => Array ( [0] => php ) ) 0
Output for 5.0.0 - 5.1.6
Array ( [0] => Array ( [0] => php ) ) Fatal error: Call to undefined function preg_last_error() in /in/0i6dk on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Array ( [0] => Array ( [0] => php ) ) Fatal error: Call to undefined function: preg_last_error() in /in/0i6dk on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Array ( [0] => Array ( [0] => php ) ) Fatal error: Call to undefined function: preg_last_error() in /in/0i6dk on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Array ( [0] => Array ( [0] => php ) ) Fatal error: Call to undefined function: preg_last_error() in /in/0i6dk on line 5