3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php fb_enable_code_coverage(); $std = new stdClass; $reflection = new ReflectionClass; $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/Ppc73:4 Stack trace: #0 {main} thrown in /in/Ppc73 on line 4
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Warning: __construct() expects exactly 1 parameter, 0 given in /in/Ppc73 on line 7 Notice: Undefined variable: name_or_obj in /in/Ppc73 on line 7 Notice: Undefined variable: name_or_obj in /in/Ppc73 on line 7 Fatal error: Uncaught exception 'ReflectionException' with message 'Class does not exist' in /in/Ppc73:7 Stack trace: #0 /in/Ppc73(7): ReflectionClass->__construct() #1 {main}
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function fb_enable_code_coverage() in /in/Ppc73 on line 4
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/Ppc73 on line 4
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/Ppc73 on line 4
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/Ppc73 on line 4