3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function tick_handler() { echo "tick_handler() called\n"; } $a = 1; tick_handler(); if ($a > 0) { $a += 2; tick_handler(); print($a); tick_handler(); } tick_handler();
Output for 4.3.0 - 7.1.0
tick_handler() called tick_handler() called 3tick_handler() called tick_handler() called