3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php declare(ticks=1); if (function_exists('register_tick_function')): register_tick_function('hello'); endif; function hello() { echo 'hello'; }
based on 6GEoj
Output for 7.0.0 - 7.1.0
hellohello
Output for hhvm-3.12.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.6.28
hellohellohello
Output for 4.3.2 - 4.4.9
Warning: main(): Unable to call hello() - function does not exist in /in/2Vr4C on line 5 Warning: main(): Unable to call hello() - function does not exist in /in/2Vr4C on line 6 hello
Output for 4.3.0 - 4.3.1
Warning: main() [http://www.php.net/function.main]: Unable to call hello() - function does not exist in /in/2Vr4C on line 5 Warning: main() [http://www.php.net/function.main]: Unable to call hello() - function does not exist in /in/2Vr4C on line 6 hello