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(10, 5));
based on EX8Za
Output for 4.3.0 - 7.2.0
int(5)