3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '25,34,45,46'; $array = explode("," 56 $string); echo array_sum($array); ?>
based on pMFn9
Output for 7.0.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.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected T_LNUMBER, expecting ')' in /in/Alhmp:3 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '56' (T_LNUMBER) in /in/Alhmp on line 3
Process exited with code 255.