3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = &new int; val_dump($a);
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'new' (T_NEW) in /in/AElOQ on line 2
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Deprecated: Assigning the return value of new by reference is deprecated in /in/AElOQ on line 2 Fatal error: Class 'int' not found in /in/AElOQ on line 2
Process exited with code 255.

preferences:
165.88 ms | 1387 KiB | 25 Q