3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh fb_enable_code_coverage(); new stdClass; $data = fb_get_code_coverage(TRUE); fb_disable_code_coverage(); var_dump($data);
Output for hhvm-3.10.0 - 3.12.0
array(2) { ["systemlib.php"]=> array(1) { [8]=> int(1) } ["/in/2g0KA"]=> array(3) { [3]=> int(1) [5]=> int(2) [7]=> int(1) } }
Output for 5.4.34 - 5.4.38
Parse error: syntax error, unexpected 'fb_enable_code_coverage' (T_STRING) in /in/2g0KA on line 3
Process exited with code 255.
Output for 5.3.0 - 5.4.32
<?hh fb_enable_code_coverage(); new stdClass; $data = fb_get_code_coverage(TRUE); fb_disable_code_coverage(); var_dump($data);