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.4.0 - 5.5.1
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /in/XieeJ on line 39
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_FOREACH in /in/XieeJ on line 39
Process exited with code 255.