3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=['W10','W8','W9','W11','W6','W7']; $b=['W0010','W008','W009','W0011','W006','W007']; 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] => W6 [1] => W7 [2] => W8 [3] => W9 [4] => W10 [5] => W11 ) Array ( [0] => W0010 [1] => W0011 [2] => W006 [3] => W007 [4] => W008 [5] => 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:
42.78 ms | 401 KiB | 8 Q