3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['x' => 0.5, 'y' => 23], ['x' => 23, 'y' => 21.75], ['x' => 14.25, 'y' => 21.875], ['x' => 19.375, 'y' => 21.75], ['x' => 9.125, 'y' => 21.875], ['x' => 23, 'y' => 19.625], ['x' => 19.375, 'y' => 19.625], ]; foreach ($array as $row) { $result['#' . $row['y']] ??= $row; } var_export(array_values($result));
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'x' => 0.5, 'y' => 23, ), 1 => array ( 'x' => 23, 'y' => 21.75, ), 2 => array ( 'x' => 14.25, 'y' => 21.875, ), 3 => array ( 'x' => 23, 'y' => 19.625, ), )

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