3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=['W1010','W108','W109','W1011']; $b=['W0010','W008','W009','W0011']; sort($a,SORT_NATURAL); sort($b,SORT_NATURAL); print_r($a); # Sort OK print_r($b); # Sort Wrong - Why? Bug?
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => W108 [1] => W109 [2] => W1010 [3] => W1011 ) Array ( [0] => W0010 [1] => W0011 [2] => W008 [3] => W009 )

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:
40.75 ms | 401 KiB | 8 Q