3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($array) { var_dump($array); } $array = array( 0 => 'Say', 2 => 'John', ); foo($array);
based on 5QjVk
Output for 4.3.0 - 7.2.0
array(2) { [0]=> string(3) "Say" [2]=> string(4) "John" }