3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$b = preg_replace('/b.*b/', '', 'baab' . str_repeat('a', 100024)); $b = preg_match('/(.)*/', str_repeat('x', 6000)); var_dump(PCRE_VERSION, ini_get('pcre.backtrack_limit'),ini_get('pcre.recursion_limit'), strlen($b));
Output for 7.0.3 - 7.1.0
string(15) "8.38 2015-11-23" string(7) "1000000" string(6) "100000" int(0)
Output for 7.0.0 - 7.0.2
string(15) "8.37 2015-04-28" string(7) "1000000" string(6) "100000" int(0)
Output for 5.5.32 - 5.5.36, 5.6.18 - 5.6.28, hhvm-3.10.0 - 3.12.0
string(15) "8.38 2015-11-23" string(7) "1000000" string(6) "100000" int(1)
Output for 5.4.43 - 5.4.45, 5.5.27 - 5.5.31, 5.6.11 - 5.6.17
string(15) "8.37 2015-04-28" string(7) "1000000" string(6) "100000" int(1)
Output for 5.4.41 - 5.4.42, 5.5.25 - 5.5.26, 5.6.9 - 5.6.10
string(15) "8.36 2014-09-26" string(7) "1000000" string(6) "100000" int(1)
Output for 5.5.10 - 5.5.24, 5.6.0 - 5.6.8
string(15) "8.34 2013-12-15" string(7) "1000000" string(6) "100000" int(1)
Output for 5.3.24 - 5.3.29, 5.4.14 - 5.4.40, 5.5.0 - 5.5.9
string(15) "8.32 2012-11-30" string(7) "1000000" string(6) "100000" int(1)
Output for 5.3.23, 5.4.9 - 5.4.13
string(15) "8.31 2012-07-06" string(7) "1000000" string(6) "100000" int(1)
Output for 5.3.7 - 5.3.9, 5.4.0 - 5.4.8
string(15) "8.12 2011-01-15" string(7) "1000000" string(6) "100000" int(1)
Output for 5.3.10 - 5.3.22

Process exited with code 139.
Output for 5.3.6
string(15) "8.11 2010-12-10" string(6) "100000" string(6) "100000" int(1)
Output for 5.3.4 - 5.3.5
string(15) "8.10 2010-06-25" string(6) "100000" string(6) "100000" int(1)
Output for 5.2.14 - 5.2.17, 5.3.3
string(15) "8.02 2010-03-19" string(6) "100000" string(6) "100000" int(1)
Output for 5.3.2
string(15) "8.00 2009-10-19" string(6) "100000" string(6) "100000" int(1)
Output for 5.2.10 - 5.2.13, 5.3.0 - 5.3.1
string(14) "7.9 2009-04-11" string(6) "100000" string(6) "100000" int(1)
Output for 5.2.7 - 5.2.9
string(14) "7.8 2008-09-05" string(6) "100000" string(6) "100000" int(1)
Output for 5.2.6
string(14) "7.6 2008-01-28" string(6) "100000" string(6) "100000" int(1)
Output for 5.2.5
string(14) "7.3 2007-08-28" string(6) "100000" string(6) "100000" int(1)
Output for 5.2.4
string(14) "7.2 2007-06-19" string(6) "100000" string(6) "100000" int(1)
Output for 5.2.0 - 5.2.3
Notice: Use of undefined constant PCRE_VERSION - assumed 'PCRE_VERSION' in /in/rjVK7 on line 4 string(12) "PCRE_VERSION" string(6) "100000" string(6) "100000" int(1)
Output for 4.3.0 - 5.1.6
Notice: Use of undefined constant PCRE_VERSION - assumed 'PCRE_VERSION' in /in/rjVK7 on line 4 string(12) "PCRE_VERSION" string(0) "" string(0) "" int(1)