3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($array) { usort($array, function($a, $b) { return 1; }); echo json_encode($array), PHP_EOL; } for ($i = 3; $i <= 20; $i++) { test(range(1, $i)); }
Output for git.master, git.master_jit, rfc.property-hooks
[2,3,1] [4,2,3,1] [5,4,2,3,1] [6,5,4,3,2,1] [6,7,5,4,3,2,1] [8,6,7,5,4,3,2,1] [8,9,6,7,5,4,3,2,1] [10,8,9,6,7,5,4,3,2,1] [10,11,8,9,6,7,5,4,3,2,1] [12,10,11,8,9,6,7,5,4,3,2,1] [12,13,10,11,8,9,6,7,5,4,3,2,1] [14,12,13,10,11,8,9,6,7,5,4,3,2,1] [14,15,12,13,10,11,8,9,6,7,5,4,3,2,1] [16,14,15,12,13,10,11,8,9,6,7,5,4,3,2,1] [14,15,12,13,10,11,8,2,6,7,5,4,3,16,9,17,1] [16,14,15,12,13,2,11,8,9,6,7,5,4,3,17,10,18,1] [14,15,12,13,2,11,8,18,6,7,5,4,3,16,9,17,10,19,1] [16,14,15,12,13,19,2,8,9,6,7,5,4,3,17,10,18,11,20,1]

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