3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array( '@@warning_count' => 2, array( 'level' => 'Warning', 'code' => 1266, 'message' => "Incorrect integer value: ‘Johny’ for column ‘billing_cycle’ at row 1"), array( 'level' => 'Warning', 'code' => 1266, 'message' => "Incorrect integer value: ‘Johny’ for column ‘billing_cycle’ at row 1"), ) foreach($myArray as $k => $v) { echo $k . ": " . $v; }
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /in/hB4Ch on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_FOREACH in /in/hB4Ch on line 14
Process exited with code 255.

preferences:
167.72 ms | 1395 KiB | 57 Q