3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $what = [1, 2, 3, 4]; foreach ($what as $uhh) { echo ($uhh + '<\br>'); }
based on eHJhV
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/WBG9U on line 4 1 Warning: A non-numeric value encountered in /in/WBG9U on line 4 2 Warning: A non-numeric value encountered in /in/WBG9U on line 4 3 Warning: A non-numeric value encountered in /in/WBG9U on line 4 4
Output for 5.4.0 - 7.0.20
1234
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/WBG9U on line 2
Process exited with code 255.