3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( (unset) 'x', (unset) 42, (unset) 0.42, (unset) [42], (unset) new Std, (unset) null );
based on Yg3IK
Output for 7.2.0
Deprecated: The (unset) cast is deprecated in /in/GVhuk on line 3 Deprecated: The (unset) cast is deprecated in /in/GVhuk on line 4 Deprecated: The (unset) cast is deprecated in /in/GVhuk on line 5 Deprecated: The (unset) cast is deprecated in /in/GVhuk on line 6 Deprecated: The (unset) cast is deprecated in /in/GVhuk on line 7 Deprecated: The (unset) cast is deprecated in /in/GVhuk on line 8 Fatal error: Uncaught Error: Class 'Std' not found in /in/GVhuk:7 Stack trace: #0 {main} thrown in /in/GVhuk on line 7
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Fatal error: Uncaught Error: Class 'Std' not found in /in/GVhuk:7 Stack trace: #0 {main} thrown in /in/GVhuk on line 7
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Class 'Std' not found in /in/GVhuk on line 7
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/GVhuk on line 6
Process exited with code 255.