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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0120.01020.02
8.4.150.0030.00014.05
8.4.140.0120.00917.68
8.4.130.0160.00518.06
8.4.120.0050.00520.48
8.4.110.0110.01022.61
8.4.100.0140.00717.45
8.4.90.0060.00320.22
8.4.80.0040.00517.35
8.4.70.0120.00817.77
8.4.60.0090.00718.69
8.4.50.0130.00820.35
8.4.40.0080.00017.71
8.4.30.0190.00717.20
8.4.20.0120.00917.55
8.4.10.0240.00017.44
8.3.280.0130.00718.27
8.3.270.0090.01016.65
8.3.260.0100.00916.57
8.3.250.0090.01018.87
8.3.240.0100.00916.64
8.3.230.0110.00516.72
8.3.220.0150.00617.13
8.3.210.0040.00418.53
8.3.200.0070.00216.72
8.3.190.0090.00517.14
8.3.180.0110.00718.74
8.3.170.0100.01016.86
8.3.160.0200.00616.40
8.3.150.0240.00916.28
8.3.140.0400.00616.58
8.3.130.0370.00416.64
8.3.120.0350.00616.62
8.3.110.0360.00616.28
8.3.100.0320.00916.75
8.3.90.0290.01316.25
8.3.80.0360.01116.70
8.3.70.0290.01416.44
8.3.60.0450.00716.30
8.3.50.0420.00716.33
8.3.40.0260.01317.28
8.3.30.0300.00617.34
8.3.20.0340.00617.38
8.3.10.0210.01217.40
8.3.00.0190.00617.48
8.2.290.0100.00920.29
8.2.280.0150.00520.21
8.2.270.0260.01116.33
8.2.260.0340.00516.35
8.2.250.0280.00416.34
8.2.240.0230.00316.70
8.2.230.0230.00416.47
8.2.220.0150.00316.56
8.2.210.0140.00416.24
8.2.200.0130.00416.26
8.2.190.0210.00316.30
8.2.180.0170.00016.15
8.2.170.0170.01317.30
8.2.160.0270.00717.39
8.2.150.0310.00317.29
8.2.140.0270.01417.25
8.2.130.0290.01117.29
8.2.120.0300.00817.07
8.2.110.0300.01017.34
8.2.100.0360.00317.23
8.2.90.0360.00317.29
8.2.80.0310.00717.34
8.2.70.0290.01017.01
8.2.60.0310.00017.05
8.2.50.0420.00417.27
8.2.40.0370.00317.55
8.2.30.0180.01117.49
8.2.20.0370.00017.23
8.2.10.0260.01017.32
8.2.00.0250.01117.59
8.1.320.0120.00718.02

preferences:
29.31 ms | 403 KiB | 5 Q