3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['10:38' => 'Dale', '8:06' => 'Catalin', '09:30' => 'Sam']; # Sort by arraival ksort($array, SORT_NATURAL); var_dump( $array);

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.4.20.0060.01318.87
8.4.10.0100.00619.28
8.3.140.0060.01016.52
8.3.130.0050.00318.09
8.3.120.0040.00420.56
8.3.110.0100.01020.94
8.3.100.0170.00324.06
8.3.90.0040.00426.77
8.3.80.0060.00316.35
8.3.70.0140.00316.63
8.3.60.0150.00618.15
8.3.50.0070.01118.09
8.3.40.0060.00918.64
8.3.30.0180.00318.35
8.3.20.0070.00021.73
8.3.10.0090.00020.77
8.3.00.0080.00021.90
8.2.260.0050.00316.57
8.2.250.0000.00716.84
8.2.240.0070.01117.07
8.2.230.0070.01322.58
8.2.220.0100.00637.54
8.2.210.0070.00426.77
8.2.200.0040.00418.27
8.2.190.0140.00716.58
8.2.180.0040.01125.92
8.2.170.0110.00418.83
8.2.160.0160.00322.96
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00726.16
8.2.110.0060.00320.45
8.2.100.0040.00717.78
8.2.90.0040.00417.84
8.2.80.0070.00417.97
8.2.70.0000.00817.91
8.2.60.0000.00718.09
8.2.50.0030.00618.10
8.2.40.0110.00019.34
8.2.30.0000.00820.49
8.2.20.0030.00518.00
8.2.10.0050.00218.87
8.2.00.0000.00719.70
8.1.310.0090.00918.21
8.1.300.0040.00416.24
8.1.290.0090.00030.84
8.1.280.0060.01225.92
8.1.270.0060.00320.71
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0050.00522.33
8.1.230.0040.00722.68
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0060.00317.25
8.1.190.0080.00017.10
8.1.180.0000.00918.10
8.1.170.0040.00418.65
8.1.160.0000.00818.73
8.1.150.0040.00418.79
8.1.140.0030.00320.29
8.1.130.0030.00320.25
8.1.120.0040.00717.28
8.1.110.0080.00017.25
8.1.100.0030.00617.29
8.1.90.0030.00517.34
8.1.80.0000.00717.39
8.1.70.0000.00717.39
8.1.60.0040.00417.52
8.1.50.0030.00717.49
8.1.40.0000.00917.41
8.1.30.0000.00817.41
8.1.20.0000.00817.56
8.1.10.0000.00717.45
8.1.00.0000.00917.46
8.0.300.0040.00419.95
8.0.290.0040.00416.63
8.0.280.0040.00418.39
8.0.270.0040.00417.10
8.0.260.0030.00318.29
8.0.250.0000.00716.77
8.0.240.0030.00316.91
8.0.230.0000.00616.91
8.0.220.0070.00016.80
8.0.210.0000.00916.73
8.0.200.0040.00416.89
8.0.190.0030.00316.92
8.0.180.0000.00716.79
8.0.170.0040.00416.86
8.0.160.0070.00016.81
8.0.150.0030.00416.75
8.0.140.0040.00416.73
8.0.130.0000.00613.20
8.0.120.0040.00416.75
8.0.110.0070.00016.71
8.0.100.0000.00816.89
8.0.90.0000.00816.85
8.0.80.0070.00716.79
8.0.70.0080.00016.71
8.0.60.0060.00316.87
8.0.50.0040.00416.80
8.0.30.0120.00416.86
8.0.20.0130.01617.03
8.0.10.0000.00716.93
8.0.00.0120.00916.66
7.4.330.0000.00415.55
7.4.320.0000.00616.43
7.4.300.0060.00016.50
7.4.290.0040.00416.38
7.4.280.0000.00816.45
7.4.270.0000.00916.50
7.4.260.0070.00016.42
7.4.250.0030.00316.50
7.4.240.0000.00716.46
7.4.230.0030.00316.34
7.4.220.0030.00516.55
7.4.210.0070.00716.52
7.4.200.0000.00716.41
7.4.140.0110.01017.86
7.4.130.0060.01116.24
7.4.120.0180.00416.36
7.4.110.0130.00716.39
7.4.100.0100.01016.34
7.4.90.0070.01016.44
7.4.80.0150.00019.39
7.4.70.0040.01216.38
7.4.60.0170.00016.42
7.4.50.0030.01516.23
7.4.40.0030.01216.25
7.4.00.0040.01414.79
7.3.330.0060.00013.03
7.3.320.0050.00012.99
7.3.310.0000.00716.21
7.3.300.0000.00616.17
7.3.290.0060.00916.14
7.3.280.0060.00916.16
7.3.260.0110.00916.23
7.3.240.0080.00916.33
7.3.230.0030.01316.36
7.3.210.0030.01416.36
7.3.200.0110.00716.09
7.3.190.0090.01216.27
7.3.180.0070.01016.19
7.3.170.0140.00916.32
7.3.160.0080.00816.42
7.3.50.0030.01814.41
7.3.40.0060.00614.45
7.3.30.0030.01414.61
7.3.20.0130.00714.46
7.3.10.0160.00314.76
7.3.00.0190.01314.72
7.2.330.0120.00616.21
7.2.320.0120.00616.40
7.2.310.0090.00916.39
7.2.300.0040.01216.31
7.2.290.0000.02116.46
7.2.180.0110.00414.88
7.2.170.0090.01514.90
7.2.160.0040.00814.82
7.2.150.0410.00714.84
7.2.140.0130.00514.76
7.2.130.0140.01414.87
7.2.120.0150.00615.05
7.2.110.0100.01015.08
7.2.100.0150.00014.89
7.2.90.0190.01015.03
7.2.80.0150.01414.89
7.2.70.0090.00914.84
7.2.60.0090.00614.88
7.2.50.0120.00314.93
7.2.40.0230.00314.58
7.2.30.0170.01014.85
7.2.20.0190.00914.78
7.2.10.0130.01314.89
7.2.00.0160.00914.86
7.1.280.0200.00714.02
7.1.270.0780.00714.06
7.1.260.0030.01413.97
7.1.250.0160.00314.04

preferences:
64.14 ms | 403 KiB | 5 Q