3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testArray = array( array( "id" => "1", "value1" => "Something", "anotherValue" => "Else" ), array( "id" => "2", "value1" => "Something", "anotherValue" => "Else" ), array( "id" => "3", "value1" => "Something", "anotherValue" => "Else" ), array( "id" => "4", "value1" => "Something", "anotherValue" => "Else" ), array( "id" => "5", "value1" => "Something", "anotherValue" => "Else" ), array( "id" => "6", "value1" => "Something", "anotherValue" => "Else" )); print_r($testArray);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [id] => 1 [value1] => Something [anotherValue] => Else ) [1] => Array ( [id] => 2 [value1] => Something [anotherValue] => Else ) [2] => Array ( [id] => 3 [value1] => Something [anotherValue] => Else ) [3] => Array ( [id] => 4 [value1] => Something [anotherValue] => Else ) [4] => Array ( [id] => 5 [value1] => Something [anotherValue] => Else ) [5] => Array ( [id] => 6 [value1] => Something [anotherValue] => Else ) )