3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foobar { public $id = 0; } $foobar = new Foobar(); $foobar2 = &new Foobar(); $foobar3 = & new Foobar(); $foobar4 =& new Foobar();
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected 'new' (T_NEW) in /in/K03n9 on line 9
Process exited with code 255.

preferences:
186.28 ms | 1395 KiB | 36 Q