3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (PHP_VERSION_ID < 70000) { echo "toto"; class String { } }
based on l7eRE
Output for 7.0.0 - 7.0.1
Fatal error: Cannot use 'String' as class name as it is reserved in /in/4hhq1 on line 5
Process exited with code 255.
Output for 5.3.20 - 5.6.28
toto