3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class StringOld { } class_alias('StringOld', 'String'); $s = new String();
based on Ir7r9
Output for 7.0.0 - 7.2.0
Fatal error: Cannot use 'string' as class name as it is reserved in /in/1is61 on line 6
Process exited with code 255.
Output for 5.3.20 - 5.6.28