3v4l.org

run code in 500+ PHP versions simultaneously
<?php $test = [ 'key1' => [ 'title' => 'title' ], 'key2' => [ 'title' => 'title' ] ]; uasort($test, function (array $a, array $b) { return $a['title'] > $b['title']; }); var_dump($test); var_dump($test['key1']['title'] > $test['key2']['title']);
Output for git.master, rfc.property-hooks, git.master_jit
Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /in/e6noO on line 12 array(2) { ["key1"]=> array(1) { ["title"]=> string(5) "title" } ["key2"]=> array(1) { ["title"]=> string(5) "title" } } bool(false)

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:
81.81 ms | 2290 KiB | 4 Q