3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match_all('#\bпхп|php\b#u', 'пхп php', $m); print_r($m); echo PCRE_VERSION; print_r(preg_last_error());
Output for 5.5.32 - 5.5.37, 5.6.18 - 5.6.28, 7.0.3 - 7.1.0
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.38 2015-11-230
Output for 5.4.43 - 5.4.45, 5.5.27 - 5.5.31, 5.6.11 - 5.6.17, 7.0.0 - 7.0.2
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.37 2015-04-280
Output for 5.4.41 - 5.4.42, 5.5.25 - 5.5.26, 5.6.9 - 5.6.10
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.36 2014-09-260
Output for 5.5.10 - 5.5.24, 5.6.0 - 5.6.8
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.34 2013-12-150
Output for 5.3.24 - 5.3.29, 5.4.14 - 5.4.40, 5.5.0 - 5.5.9
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.32 2012-11-300
Output for 5.3.19 - 5.3.23, 5.4.9 - 5.4.13
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.31 2012-07-060
Output for 5.3.7 - 5.3.18, 5.4.0 - 5.4.8
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.12 2011-01-150
Output for 5.3.6
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.11 2010-12-100
Output for 5.3.4 - 5.3.5
Array ( [0] => Array ( [0] => пхп [1] => php ) ) 8.10 2010-06-250
Output for 5.2.14 - 5.2.17, 5.3.3
Array ( [0] => Array ( [0] => php ) ) 8.02 2010-03-190
Output for 5.3.2
Array ( [0] => Array ( [0] => php ) ) 8.00 2009-10-190
Output for 5.2.10 - 5.2.13, 5.3.0 - 5.3.1
Array ( [0] => Array ( [0] => php ) ) 7.9 2009-04-110
Output for 5.2.7 - 5.2.9
Array ( [0] => Array ( [0] => php ) ) 7.8 2008-09-050
Output for 5.2.6
Array ( [0] => Array ( [0] => php ) ) 7.6 2008-01-280
Output for 5.2.5
Array ( [0] => Array ( [0] => php ) ) 7.3 2007-08-280
Output for 5.2.4
Array ( [0] => Array ( [0] => php ) ) 7.2 2007-06-190
Output for 5.2.0 - 5.2.3
Array ( [0] => Array ( [0] => php ) ) Notice: Use of undefined constant PCRE_VERSION - assumed 'PCRE_VERSION' in /in/bjTEZ on line 5 PCRE_VERSION0
Output for 5.0.0 - 5.1.6
Array ( [0] => Array ( [0] => php ) ) Notice: Use of undefined constant PCRE_VERSION - assumed 'PCRE_VERSION' in /in/bjTEZ on line 5 PCRE_VERSION Fatal error: Call to undefined function preg_last_error() in /in/bjTEZ on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Array ( [0] => Array ( [0] => php ) ) Notice: Use of undefined constant PCRE_VERSION - assumed 'PCRE_VERSION' in /in/bjTEZ on line 5 PCRE_VERSION Fatal error: Call to undefined function: preg_last_error() in /in/bjTEZ on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Array ( [0] => Array ( [0] => php ) ) Notice: Use of undefined constant PCRE_VERSION - assumed 'PCRE_VERSION' in /in/bjTEZ on line 5 PCRE_VERSION Fatal error: Call to undefined function: preg_last_error() in /in/bjTEZ on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Array ( [0] => Array ( [0] => php ) ) Notice: Use of undefined constant PCRE_VERSION - assumed 'PCRE_VERSION' in /in/bjTEZ on line 5 PCRE_VERSION Fatal error: Call to undefined function: preg_last_error() in /in/bjTEZ on line 6