3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function hl($h) { if ($h > 4) { throw new Exception(); } ++$h; hl($h); } hl(0);
based on IVdNY
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception in /in/rHsLn:6 Stack trace: #0 /in/rHsLn(9): hl(5) #1 /in/rHsLn(9): hl(5) #2 /in/rHsLn(9): hl(4) #3 /in/rHsLn(9): hl(3) #4 /in/rHsLn(9): hl(2) #5 /in/rHsLn(13): hl(1) #6 {main} thrown in /in/rHsLn on line 6
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Uncaught exception 'Exception' in /in/rHsLn:6 Stack trace: #0 /in/rHsLn(9): hl(5) #1 /in/rHsLn(9): hl(4) #2 /in/rHsLn(9): hl(3) #3 /in/rHsLn(9): hl(2) #4 /in/rHsLn(9): hl(1) #5 /in/rHsLn(13): hl(0) #6 {main} thrown in /in/rHsLn on line 6
Process exited with code 255.