3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php fb_enable_code_coverage(); new stdClass; new Memcached; new ZipArchive; new ReflectionClass('stdClass'); $data = fb_get_code_coverage(TRUE); fb_disable_code_coverage(); var_dump($data);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function fb_enable_code_coverage() in /in/p94Rr:3 Stack trace: #0 {main} thrown in /in/p94Rr on line 3
Process exited with code 255.
Output for hhvm-3.12.0
array(5) { ["/in/p94Rr"]=> array(6) { [3]=> int(1) [5]=> int(2) [6]=> int(2) [7]=> int(2) [8]=> int(2) [10]=> int(1) } ["systemlib.php"]=> array(1) { [8]=> int(1) } ["systemlib.phpmemcached"]=> array(1) { [21]=> int(1) } ["systemlib.phpreflection_hni"]=> array(7) { [1140]=> int(1) [1144]=> int(1) [1146]=> int(2) [1150]=> int(2) [1151]=> int(1) [1154]=> int(1) [1331]=> int(1) } ["systemlib.phpzip"]=> array(1) { [416]=> int(1) } }
Output for hhvm-3.10.0
array(5) { ["/in/p94Rr"]=> array(6) { [3]=> int(1) [5]=> int(2) [6]=> int(2) [7]=> int(2) [8]=> int(2) [10]=> int(1) } ["systemlib.php"]=> array(1) { [8]=> int(1) } ["systemlib.phpmemcached"]=> array(1) { [21]=> int(1) } ["systemlib.phpreflection_hni"]=> array(7) { [1094]=> int(1) [1098]=> int(1) [1100]=> int(2) [1104]=> int(2) [1105]=> int(1) [1108]=> int(1) [1285]=> int(1) } ["systemlib.phpzip"]=> array(1) { [416]=> int(1) } }
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function fb_enable_code_coverage() in /in/p94Rr on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: fb_enable_code_coverage() in /in/p94Rr on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: fb_enable_code_coverage() in /in/p94Rr on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: fb_enable_code_coverage() in /in/p94Rr on line 3