3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function magic($p, $q) { return ($q == 0) ? $p : magic($q, $p % $q); } var_dump(magic(1024, 1000));
based on XIJrj
Output for 4.3.0 - 7.2.0
int(8)