3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '4.18'; $b = array(1,2,3,4,5); var_dump(array_sum(array($a, $b))); var_dump($a + $b);
Output for 7.0.0 - 7.1.0
float(4.18) Fatal error: Uncaught Error: Unsupported operand types in /in/2UBEZ:6 Stack trace: #0 {main} thrown in /in/2UBEZ on line 6
Process exited with code 255.
Output for 4.3.2 - 5.6.28
float(4.18) Fatal error: Unsupported operand types in /in/2UBEZ on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
float(4.18) Fatal error: Unsupported operand types in /in/2UBEZ on line 6