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(DateTime::getLastErrors());
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'warning_count' => 1, 'warnings' => array ( 8 => 'Trailing data', ), 'error_count' => 0, 'errors' => array ( ), )

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