3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 25,34,45,46; $array = explode(",", $string); echo array_sum($array); ?>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected ',' in /in/cAj0t on line 2
Process exited with code 255.

preferences:
172.04 ms | 1395 KiB | 36 Q