3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $x = array ( 4 => array ( "locationIds" => array ( '1' ), "contentIds" => array ( '2' ) ), 2 => array ( "locationIds" => array ( '3' ), "contentIds" => array ( 4 ) ) ); foreach( $x as $i => $v ) echo $i . ' => ' . $v . "\n";
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/p2bru on line 40 4 => Array Notice: Array to string conversion in /in/p2bru on line 40 2 => Array
Output for 4.3.0 - 5.4.45
4 => Array 2 => Array