3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = json_decode('{ "data":[ {"roleId":"qai41","role":"qai43","level":"45","sex":"0"}, {"roleId":"qai41","role":"qai41","level":"78","sex":"0"}, {"roleId":"qai41","role":"qai42","level":"44","sex":"0"} ] }', true); function levelSort($a, $b) { if($a['level'] == $b['level']) return 0; return ($a['level']<$b['level']) ? 1 : -1; } usort($t['data'], 'levelSort'); print_r($t['data'][0]['roleId']);
Output for git.master, git.master_jit, rfc.property-hooks
qai41

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