3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array (5 => 3, 12 => 4); $arr [] = 57; $arr [ "x" ] = 62; echo var_dump( $arr );
Output for 4.3.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
array(4) { [5]=> int(3) [12]=> int(4) [13]=> int(57) ["x"]=> int(62) }
Output for hhvm-3.12.0

Process exited with code 137.