3v4l.org

run code in 300+ PHP versions simultaneously
<?php $donuts[0] = "Chocolate 02"; $donuts[1] = "Jelly 16"; $donuts[2] = "Glazed 01"; $donuts[3] = "Frosted 12"; array_multisort(array_map(fn($v) => substr($v, -2), $donuts), $donuts); var_export($donuts);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'Glazed 01', 1 => 'Chocolate 02', 2 => 'Frosted 12', 3 => 'Jelly 16', )

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:
28.95 ms | 405 KiB | 5 Q