3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (string)array_shift([array_sum([substr("4", 1)])]);
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
Fatal error: Only variables can be passed by reference in /in/nvj15 on line 3
Process exited with code 255.

preferences:
64.29 ms | 402 KiB | 60 Q