3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // $TiposE = []; $TiposE = array(); $LojasidEmpresa = 28; $TeUtilizado = 0; $Inf = Array(['idEmpresa' => $LojasidEmpresa,'TeUtilizado' => $TeUtilizado]); array_push($TiposE, $Inf); $Inf2 = Array(['idEmpresa' => 30,'TeUtilizado' => 1]); array_push($TiposE, $Inf2); // var_dump($TiposE); $a = $TiposE[1]; var_dump($a); echo $a[0];
based on eHvTN
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.3.0rc3
array(1) { [0]=> array(2) { ["idEmpresa"]=> int(30) ["TeUtilizado"]=> int(1) } } Notice: Array to string conversion in /in/GOTdc on line 15 Array
Output for hhvm-3.22.0
array(1) { [0]=> array(2) { ["idEmpresa"]=> int(30) ["TeUtilizado"]=> int(1) } } Notice: Array to string conversion in /in/GOTdc on line -1 Array