3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Some\Namespace; new stdClass;
Output for 8.1.23 - 8.1.27, 8.2.10 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Class "Some\Namespace\stdClass" not found in /in/SaAN3:5 Stack trace: #0 {main} thrown in /in/SaAN3 on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'Namespace' (T_NAMESPACE), expecting identifier (T_STRING) in /in/SaAN3 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /in/SaAN3 on line 2
Process exited with code 255.

preferences:
76.7 ms | 401 KiB | 81 Q