3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; print_r( $v );

preferences:
35.6 ms | 402 KiB | 5 Q