3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Slevomat\String; class String { public function __construct() { echo 'OK'; } } $y = new String();
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.5.24 - 5.5.35, 5.6.8 - 5.6.28
OK

preferences:
171.6 ms | 1395 KiB | 35 Q