3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f($number) { $num=fib($number); echo ' | '.$number.' number fibinache is '.$num; } function fib($num,$count=0,$plast=0,$last=1){ if($count <= $num){ $newlast=$plast+$last; echo ' | '.$count': '.$newlast; $count++; return fib($num,$count,$last,$newlast); } else { return $last; } } f(3); ?>
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '': '' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in /in/S9Ked on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /in/S9Ked on line 10
Process exited with code 255.