3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function fib ($n) { if ($n == 0) { return 0; } if ($n == 1) { return 1; } return fib( $n - 1 ) + fib( $n - 2 ); } print fib(40);
Output for 5.3.11 - 7.2.0

Process exited with code 137.