3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = <<<CODE try{ throw new Exception('test'); }catch(Exception $e) { echo "seen"; die('never gonna give up'); } CODE; eval($code)
Output for 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Parse error: syntax error, unexpected end of file in /in/KG0vv on line 12
Process exited with code 255.

preferences:
148.46 ms | 951 KiB | 7 Q