3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['Name' => 'Opony', 'Kod' =>'OPO', 'Price' => 100], ['Kod' =>'OLE', 'Name' => 'Olej', 'Price' => 20], ['Kod' =>'ABC', 'Price' => 20, 'Name' => 'abcdefg'] ]; function keySortRow(array $row): array { ksort($row); return $row; } var_export( array_map('keySortRow', $array) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'Kod' => 'OPO', 'Name' => 'Opony', 'Price' => 100, ), 1 => array ( 'Kod' => 'OLE', 'Name' => 'Olej', 'Price' => 20, ), 2 => array ( 'Kod' => 'ABC', 'Name' => 'abcdefg', 'Price' => 20, ), )

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