3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('Client Technical Specialist', 'Client Technical Specialist - PTA', 'CTM', 'A Test Elemetn', 'Cats', 'ZZZZZZ'); usort($arr, function($a, $b){ return strcasecmp($a, $b); }); echo 'strcasecmp: ' . join(', ', $arr) . '<br>'; usort($arr, function($a, $b){ return strnatcmp($a, $b); }); echo 'strnatcmp: ' . join(', ', $arr) . '<br>';
Output for git.master, git.master_jit, rfc.property-hooks
strcasecmp: A Test Elemetn, Cats, Client Technical Specialist, Client Technical Specialist - PTA, CTM, ZZZZZZ<br>strnatcmp: A Test Elemetn, CTM, Cats, Client Technical Specialist, Client Technical Specialist - PTA, ZZZZZZ<br>

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