3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 - 7.1.0
@@warning_count: 2 Notice: Array to string conversion in /in/RnLHM on line 16 0: Array Notice: Array to string conversion in /in/RnLHM on line 16 1: Array
Output for 4.3.0 - 5.3.29
@@warning_count: 20: Array1: Array