3v4l.org

run code in 300+ PHP versions simultaneously
<?php $resolutions = array ( "Desktop monitor" => array ( //Standard 4:3 "800x600" => "800x600", "1024x768" => "1024x768", "1600x1200" => "1600x1200", //Wide 16:10 "960x600" => "960x600", "1280x800" => "1280x800", "1440x900" => "1440x900", "1680x1050" => "1680x1050", "1920x1200" => "1920x1200", ), "Apple" => array ( "DeviceX" => "2048x1536", "DeviceY" => "1024x768", ), ); array_walk( $resolutions, function (&$row) { asort($row, SORT_NATURAL); } ); var_export($resolutions);
Output for git.master, git.master_jit
array ( 'Desktop monitor' => array ( '800x600' => '800x600', '960x600' => '960x600', '1024x768' => '1024x768', '1280x800' => '1280x800', '1440x900' => '1440x900', '1600x1200' => '1600x1200', '1680x1050' => '1680x1050', '1920x1200' => '1920x1200', ), 'Apple' => array ( 'DeviceY' => '1024x768', 'DeviceX' => '2048x1536', ), )

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