3v4l.org

run code in 300+ PHP versions simultaneously
<?php $props = [ ['name' => 'Mathmatics', 'time' => '03:01:PM - 04:50:PM'], ['name' => 'History', 'time' => '11:30:AM - 01:30:PM'], ['name' => 'French', 'time' => '01:31:PM - 03:00:PM'], ]; array_multisort( array_map( fn($row) => DateTime::createFromFormat('h:i:A+', $row['time']), $props ), $props ); var_export($props);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'name' => 'History', 'time' => '11:30:AM - 01:30:PM', ), 1 => array ( 'name' => 'French', 'time' => '01:31:PM - 03:00:PM', ), 2 => array ( 'name' => 'Mathmatics', 'time' => '03:01:PM - 04:50:PM', ), )

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