3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $h = 0; function hl($h) { if ($h > 4) { throw Exception(); } ++$h; hl($h); } hl(0);
based on 7dsnK
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function Exception() in /in/IVdNY:7 Stack trace: #0 /in/IVdNY(10): hl(5) #1 /in/IVdNY(10): hl(5) #2 /in/IVdNY(10): hl(4) #3 /in/IVdNY(10): hl(3) #4 /in/IVdNY(10): hl(2) #5 /in/IVdNY(14): hl(1) #6 {main} thrown in /in/IVdNY on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function Exception() in /in/IVdNY on line 7
Process exited with code 255.