3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php declare(ticks=1); $x = 6; function tick_handler() { $a = 3; var_dump(get_defined_vars()); } register_tick_function('tick_handler');
based on 3jZtK
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
array(1) { ["a"]=> int(3) }
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function register_tick_function() in /in/SGL8M on line 12
Process exited with code 255.