3v4l.org

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

preferences:
175.72 ms | 1395 KiB | 36 Q