3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function A($x) { if ($x > 5) return $x === 5; return 5; } function B($x) { return A($x / A($x - 5)); } $x = B(5) + B(5 + 5); echo (A(5) === 5 ? $x * 5 : $x + 5) / 5 - 5; echo "\n";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
5