3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class self { }
Output for 7.0.0 - 7.0.7
Fatal error: Cannot use 'self' as class name as it is reserved in /in/WBobY on line 3
Process exited with code 255.
Output for 5.0.0 - 5.6.22
Fatal error: Cannot use 'self' as class name as it is reserved in /in/WBobY on line 4
Process exited with code 255.
Output for 4.3.0 - 4.4.9