3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (PHP >= 7) { class String { } }
based on Jthed
Output for 7.0.0 - 7.0.1
Fatal error: Cannot use 'String' as class name as it is reserved in /in/SQotn on line 4
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Notice: Use of undefined constant PHP - assumed 'PHP' in /in/SQotn on line 3