3v4l.org

run code in 300+ PHP versions simultaneously
<?php $win = array('Name'=> array('Jane Doe ', 'Nash Patel ', 'Joe Public '), 'Date'=> array('7 October 2015 ', '14 October 2014 ', '12 October 2016 ')); $dates = $win["Date"]; $names = $win["Name"]; usort($dates, "date_sort"); asort($names); var_dump($dates); Var_dump($names); function date_sort($a, $b) { return strtotime($a) - strtotime($b); }
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(16) "14 October 2014 " [1]=> string(15) "7 October 2015 " [2]=> string(16) "12 October 2016 " } array(3) { [0]=> string(9) "Jane Doe " [2]=> string(11) "Joe Public " [1]=> string(11) "Nash Patel " }

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:
25.78 ms | 406 KiB | 5 Q