3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; register_tick_function(function () use (&$a) { $a = 2; }); declare(ticks = 1) { $a === 1 or exit(1); $a === 2 or exit(1); $a === 3 or exit(1); } echo "a = $a\n";
based on VHm52
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1

Process exited with code 1.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Call to undefined function register_tick_function() in /in/oHtla:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Call to undefined function register_tick_function() in /in/oHtla:6 Stack trace: #0 {main}
Process exited with code 255.