3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=Array( "oid" => "ifType.1", "value" => "softwareLoopback(24)"); $b=Array( "oid" => "ifType.2", "value" => "eth"); $arr1=array($a,$b); Print_r($arr1); $c=Array( "oid" => "ifin.1", "value" => "1000"); $d=Array( "oid" => "ifin.2", "value" => "2000"); $arr2=array($c,$d); Print_r($arr2);
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0beta1
Array ( [0] => Array ( [oid] => ifType.1 [value] => softwareLoopback(24) ) [1] => Array ( [oid] => ifType.2 [value] => eth ) ) Array ( [0] => Array ( [oid] => ifin.1 [value] => 1000 ) [1] => Array ( [oid] => ifin.2 [value] => 2000 ) )