3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [27, 38, 58, 82]; usort( $data, function ($a, $b) { echo "Comparing $a - $b", PHP_EOL; echo 'Element A should go ', (($a - $b < 0) ? 'before' : 'after'), ' element B', PHP_EOL; return $a - $b; } );
Output for git.master, git.master_jit, rfc.property-hooks
Comparing 27 - 38 Element A should go before element B Comparing 38 - 58 Element A should go before element B Comparing 58 - 82 Element A should go before element B

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