3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = array('E1', 'E2', 'E4','E5','E0','E9','E8'); natsort($n); print_r($n); reset($n); print_r($n); usort ($n , function($a,$b){ return strnatcmp($a,$b); }); print_r($n);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [4] => E0 [0] => E1 [1] => E2 [2] => E4 [3] => E5 [6] => E8 [5] => E9 ) Array ( [4] => E0 [0] => E1 [1] => E2 [2] => E4 [3] => E5 [6] => E8 [5] => E9 ) Array ( [0] => E0 [1] => E1 [2] => E2 [3] => E4 [4] => E5 [5] => E8 [6] => E9 )

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:
33.8 ms | 402 KiB | 8 Q