3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Slevomat\String; class String { public function __construct() { echo 'OK'; } } $y = new String();
based on T4Qus
Output for 7.0.0
Fatal error: Cannot use 'String' as class name as it is reserved in /in/dvvDT on line 5
Process exited with code 255.
Output for 5.3.20 - 5.6.28
OK