3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( '5' => 2, '6' => 3, '7' => 10, '8' => 1 ); $keys = array_keys($array); sort($array); $array = array_combine($keys, $array); print_r($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.10.0060.00319.30
8.3.140.0030.00519.11
8.3.130.0050.00318.29
8.3.120.0030.00620.61
8.3.110.0130.00616.50
8.3.100.0040.00424.06
8.3.90.0030.00526.77
8.3.80.0060.00316.36
8.3.70.0040.01116.58
8.3.60.0140.00416.75
8.3.50.0070.00924.38
8.3.40.0060.01318.66
8.3.30.0080.00618.68
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0050.00326.16
8.2.260.0110.00720.74
8.2.250.0060.00316.73
8.2.240.0080.00818.93
8.2.230.0100.00020.94
8.2.220.0030.00637.54
8.2.210.0070.01126.77
8.2.200.0060.00316.34
8.2.190.0070.00716.58
8.2.180.0110.00425.92
8.2.170.0040.01119.01
8.2.160.0080.00622.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00526.16
8.2.110.0060.00322.08
8.2.100.0080.00417.72
8.2.90.0000.00917.78
8.2.80.0000.00817.97
8.2.70.0040.00417.91
8.2.60.0070.00018.03
8.2.50.0000.00818.10
8.2.40.0090.00019.37
8.2.30.0000.00819.18
8.2.20.0040.00417.86
8.2.10.0000.00719.23
8.2.00.0000.00719.21
8.1.310.0110.00716.73
8.1.300.0060.00317.97
8.1.290.0000.01230.84
8.1.280.0030.01425.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0100.00328.09
8.1.240.0100.00023.96
8.1.230.0040.00720.91
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0130.00018.16
8.1.160.0080.00418.96
8.1.150.0000.01018.72
8.1.140.0050.00220.59
8.1.130.0040.00419.98
8.1.120.0000.00717.36
8.1.110.0050.00317.26
8.1.100.0080.00017.43
8.1.90.0000.00817.40
8.1.80.0030.00517.35
8.1.70.0000.00717.35
8.1.60.0050.00317.54
8.1.50.0030.00617.41
8.1.40.0050.00317.50
8.1.30.0050.00217.57
8.1.20.0070.00017.50
8.1.10.0000.00817.40
8.1.00.0030.00617.42
8.0.300.0040.00420.08
8.0.290.0080.00016.63
8.0.280.0000.00718.30
8.0.270.0030.00316.74
8.0.260.0000.00620.18
8.0.250.0030.00316.77
8.0.240.0040.00416.92
8.0.230.0000.00716.80
8.0.220.0070.00016.79
8.0.210.0000.00716.85
8.0.200.0070.00016.86
8.0.190.0000.00816.76
8.0.180.0050.00316.85
8.0.170.0030.00616.71
8.0.160.0040.00416.71
8.0.150.0030.00316.77
8.0.140.0000.00816.75
8.0.130.0000.00513.33
8.0.120.0040.00416.83
8.0.110.0000.00816.92
8.0.100.0030.00316.82
8.0.90.0030.00616.88
8.0.80.0080.01116.76
8.0.70.0040.00416.73
8.0.60.0040.00416.64
8.0.50.0000.00716.64
8.0.30.0140.00916.71
8.0.20.0120.00616.96
8.0.10.0040.00416.83
8.0.00.0100.00716.64
7.4.330.0040.00015.55
7.4.320.0060.00016.53
7.4.300.0000.00616.32
7.4.290.0040.00416.40
7.4.280.0040.00416.41
7.4.270.0070.00016.41
7.4.260.0050.00013.30
7.4.250.0030.00316.48
7.4.240.0030.00316.50
7.4.230.0040.00416.39
7.4.220.0020.00516.37
7.4.210.0110.00616.47
7.4.200.0000.00716.37
7.4.130.0120.00416.42
7.4.120.0100.01016.18
7.4.110.0130.00316.46
7.4.100.0160.00616.29
7.4.90.0150.00916.40
7.4.80.0060.01515.97
7.4.70.0070.01016.33
7.4.60.0060.01616.08
7.4.50.0070.01416.21
7.4.40.0130.01016.15
7.4.30.0170.00616.34
7.4.20.0060.01316.46
7.4.10.0060.01016.47
7.4.00.0150.00916.37
7.3.330.0070.00016.00
7.3.320.0030.00312.92
7.3.310.0070.00015.98
7.3.300.0060.00016.08
7.3.290.0110.00616.12
7.3.280.0040.01116.18
7.3.260.0090.01216.44
7.3.230.0170.00016.06
7.3.210.0120.00616.39
7.3.200.0060.01416.41
7.3.190.0120.01015.98
7.3.180.0150.01016.39
7.3.170.0110.01116.37
7.3.160.0160.00816.10
7.3.150.0110.00716.11
7.3.140.0140.00416.15
7.3.130.0110.00616.42
7.3.120.0090.00816.29
7.3.110.0140.00716.05
7.3.100.0150.00816.15
7.3.90.0150.00916.05
7.3.80.0100.00716.16
7.3.70.0060.01216.29
7.3.60.0120.00916.06
7.3.50.0040.01216.25
7.3.40.0140.00516.20
7.3.30.0100.00716.13
7.3.20.0100.00816.12
7.3.10.0130.00616.14
7.3.00.0130.00716.09
7.2.330.0070.01316.27
7.2.320.0180.00316.36
7.2.310.0080.01616.57
7.2.300.0100.01016.53
7.2.290.0090.01516.48
7.2.280.0090.00916.66
7.2.270.0130.00616.29
7.2.260.0080.00816.43
7.2.250.0070.01116.29
7.2.240.0110.01116.50
7.2.230.0170.00316.41
7.2.220.0080.00916.41
7.2.210.0140.00316.54
7.2.200.0040.01316.39
7.2.190.0100.00916.36
7.2.180.0220.00316.44
7.2.170.0130.01016.32
7.2.160.0100.00716.38
7.2.150.0190.00016.45
7.2.140.0380.00616.53
7.2.130.0070.01116.45
7.2.120.0060.01316.41
7.2.110.0090.00916.39
7.2.100.0090.00916.44
7.2.90.0060.01216.55
7.2.80.0040.01416.57
7.2.70.0060.01216.39
7.2.60.0050.01316.20
7.2.50.0100.00816.55
7.2.40.0090.00916.61
7.2.30.0160.00316.41
7.2.20.0060.01216.45
7.2.10.0070.01316.50
7.2.00.0120.00616.48

preferences:
56.57 ms | 403 KiB | 5 Q