3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sort = array(); $sort[20] = 'foo'; $sort[30] ='xxx'; var_dump($sort);
based on KuS9n
Output for 4.3.0 - 7.2.6
array(2) { [20]=> string(3) "foo" [30]=> string(3) "xxx" }