3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array('SS2014', 'SU2014','FW2014','SS2013','SU2013','FW2013'); $results = array(); sort($strings); echo 'using normal sort'; var_dump($strings); ksort($strings); echo 'using ksort'; var_dump($strings); ntsort($strings); echo 'using ntsort'; var_dump($strings);
Output for git.master, git.master_jit, rfc.property-hooks
using normal sortarray(6) { [0]=> string(6) "FW2013" [1]=> string(6) "FW2014" [2]=> string(6) "SS2013" [3]=> string(6) "SS2014" [4]=> string(6) "SU2013" [5]=> string(6) "SU2014" } using ksortarray(6) { [0]=> string(6) "FW2013" [1]=> string(6) "FW2014" [2]=> string(6) "SS2013" [3]=> string(6) "SS2014" [4]=> string(6) "SU2013" [5]=> string(6) "SU2014" } Fatal error: Uncaught Error: Call to undefined function ntsort() in /in/c3B6d:14 Stack trace: #0 {main} thrown in /in/c3B6d on line 14
Process exited with code 255.

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