3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [1 => 'a', 0 => 'b']; var_dump(array_is_list($array)); ksort($array); var_dump(array_is_list($array)); $array = [1 => 'b']; $array[0] = 'a'; var_dump(array_is_list($array)); asort($array); // lucky sort var_dump(array_is_list($array));
Output for git.master, git.master_jit
bool(false) bool(true) bool(false) bool(true)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.1 ms | 533 KiB | 4 Q