3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = json_decode('{ "data": [[64,87,56],[68,76,58],[68,27,73],[74,99,42],[94,74,60],[97,36,79],[7,93,87],[51,69,40],[38,23,33],[57,86,31]] }'); usort($data['data'], function($a, $b) { if ($a < $b) return -1; if ($a == $b) return 0; if ($a > $b) return 1; }); var_dump($data);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/HmpJ7:7 Stack trace: #0 {main} thrown in /in/HmpJ7 on line 7
Process exited with code 255.

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.06 ms | 401 KiB | 8 Q