3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $a = 1; } catch(e){} echo $a;
Output for 8.1.23 - 8.1.28, 8.2.10 - 8.2.18, 8.3.0 - 8.3.6
1
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in /in/sUcGR on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected ')', expecting T_VARIABLE in /in/sUcGR on line 6
Process exited with code 255.

preferences:
86.37 ms | 401 KiB | 80 Q