3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 24 => 24, 25 => 25, 26 => 26, 27 => 27, 28 => 28, 29 => 29, ); $min = min($array) - 1; $max = max($array) + 1; $array[$min] = $min; $array[$max] = $max; 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.5.00.0100.01219.70
8.4.150.0020.00114.05
8.4.140.0090.01217.59
8.4.130.0110.00517.71
8.4.120.0110.00720.80
8.4.110.0110.00918.85
8.4.100.0110.01217.65
8.4.90.0140.00718.52
8.4.80.0040.00417.95
8.4.70.0110.00917.50
8.4.60.0040.00518.63
8.4.50.0140.00720.32
8.4.40.0130.00719.31
8.4.30.0100.01018.57
8.4.20.0140.00720.86
8.4.10.0080.00017.54
8.3.280.0130.00818.36
8.3.270.0100.01116.72
8.3.260.0110.00816.61
8.3.250.0110.00818.96
8.3.240.0090.00716.37
8.3.230.0150.00516.36
8.3.220.0070.01016.99
8.3.210.0090.00518.32
8.3.200.0040.00516.50
8.3.190.0120.00918.65
8.3.180.0100.00916.46
8.3.170.0110.00417.28
8.3.160.0150.00617.99
8.3.150.0040.01420.70
8.3.140.0030.00716.64
8.3.130.0100.01018.31
8.3.120.0160.00318.86
8.3.110.0040.00416.48
8.3.100.0030.00718.09
8.3.90.0070.00716.54
8.3.80.0040.00417.97
8.3.70.0070.00718.53
8.3.60.0000.01818.43
8.3.50.0070.01221.17
8.3.40.0070.00718.59
8.3.30.0040.01118.69
8.3.20.0040.00421.93
8.3.10.0040.00422.10
8.3.00.0060.00322.46
8.2.290.0080.00620.34
8.2.280.0110.00518.53
8.2.270.0130.00617.05
8.2.260.0040.00420.11
8.2.250.0030.00518.23
8.2.240.0100.01016.75
8.2.230.0040.00420.94
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0030.00618.37
8.2.190.0080.00816.63
8.2.180.0110.00418.26
8.2.170.0070.00722.96
8.2.160.0030.01022.16
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00226.16
8.2.110.0030.00622.02
8.2.100.0090.00319.47
8.2.90.0090.00017.48
8.2.80.0080.00018.83
8.2.70.0080.00317.63
8.2.60.0090.00017.93
8.2.50.0000.01018.07
8.2.40.0050.00318.17
8.2.30.0030.00617.99
8.2.20.0070.00018.12
8.2.10.0040.00419.25
8.2.00.0000.00719.30
8.1.330.0100.00923.75
8.1.320.0110.00816.19
8.1.310.0090.00916.80
8.1.300.0040.00717.82
8.1.290.0030.00618.88
8.1.280.0080.01225.92
8.1.270.0040.00420.67
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00420.35
8.1.230.0070.00417.89
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0000.00818.46
8.1.160.0070.00018.87
8.1.150.0000.00718.83
8.1.140.0040.00420.93
8.1.130.0030.00617.35
8.1.120.0040.00417.43
8.1.110.0070.00317.41
8.1.100.0080.00017.43
8.1.90.0040.00417.33
8.1.80.0000.00717.40
8.1.70.0000.00717.39
8.1.60.0040.00417.55
8.1.50.0040.00417.47
8.1.40.0060.00317.38
8.1.30.0040.00417.55
8.1.20.0080.00017.54
8.1.10.0040.00417.52
8.1.00.0050.00217.46
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.38
8.0.270.0070.00017.19
8.0.260.0030.00316.74
8.0.250.0000.00716.91
8.0.240.0040.00416.86
8.0.230.0000.00716.88
8.0.220.0000.00716.78
8.0.210.0040.00416.81
8.0.200.0040.00416.91
8.0.190.0070.00016.78
8.0.180.0040.00416.74
8.0.170.0000.00916.86
8.0.160.0030.00316.78
8.0.150.0000.00816.73
8.0.140.0040.00416.68
8.0.130.0040.00413.26
8.0.120.0000.00716.82
8.0.110.0000.00716.85
8.0.100.0030.00316.84
8.0.90.0040.00416.62
8.0.80.0070.01016.73
8.0.70.0040.00416.86
8.0.60.0000.00716.63
8.0.50.0040.00416.73
8.0.30.0090.01017.20
8.0.20.0130.00617.38
8.0.10.0070.00016.94
8.0.00.0150.00716.61
7.4.330.0050.00016.82
7.4.320.0030.00316.34
7.4.300.0060.00016.58
7.4.290.0030.00316.45
7.4.280.0000.00816.39
7.4.270.0060.00016.46
7.4.260.0050.00013.27
7.4.250.0040.00416.48
7.4.240.0040.00416.51
7.4.230.0030.00316.57
7.4.220.0020.00516.51
7.4.210.0080.00916.46
7.4.200.0070.00016.28
7.4.140.0090.00917.86
7.4.130.0150.00316.37
7.4.120.0070.01016.45
7.4.110.0180.00016.54
7.4.100.0100.00716.33
7.4.90.0120.00416.43
7.4.80.0210.00019.39
7.4.70.0060.01016.32
7.4.60.0090.00916.46
7.4.50.0060.00616.31
7.4.40.0100.00716.41
7.4.00.0130.00214.96
7.3.330.0040.00416.45
7.3.320.0000.00513.09
7.3.310.0030.00316.46
7.3.300.0070.00016.35
7.3.290.0070.00016.36
7.3.280.0040.01116.28
7.3.260.0080.01216.52
7.3.240.0060.01116.41
7.3.230.0070.01016.39
7.3.210.0100.00716.42
7.3.200.0100.01016.58
7.3.190.0130.00616.40
7.3.180.0120.00616.32
7.3.170.0120.00416.38
7.3.160.0090.00716.53
7.3.120.0090.00915.09
7.3.110.0090.00914.80
7.3.100.0080.00414.78
7.3.90.0040.00814.85
7.3.80.0100.00614.66
7.3.70.0090.00714.69
7.3.60.0100.00714.71
7.3.50.0110.00514.66
7.3.40.0080.00814.74
7.3.30.0090.00914.65
7.3.20.0130.00915.72
7.3.10.0130.00815.61
7.3.00.0150.00515.76
7.2.330.0060.01116.60
7.2.320.0100.00716.52
7.2.310.0110.00616.21
7.2.300.0030.01316.68
7.2.290.0090.00616.46
7.2.250.0100.01014.88
7.2.240.0000.01514.91
7.2.230.0030.01014.98
7.2.220.0070.00314.96
7.2.210.0100.00614.73
7.2.200.0100.00714.76
7.2.190.0060.01014.80
7.2.180.0070.01314.75
7.2.170.0070.01014.78
7.2.160.0100.00814.85
7.2.150.0150.01015.52
7.2.140.0200.00915.26
7.2.130.0130.00815.41
7.2.120.0150.00915.45
7.2.110.0130.00915.55
7.2.100.0180.00715.57
7.2.90.0170.01015.54
7.2.80.0190.00615.40
7.2.70.0220.00616.03
7.2.60.0150.01015.98
7.2.50.0340.00916.08
7.2.40.0090.01116.11
7.2.30.0150.01016.06
7.2.20.0120.00816.13
7.2.10.0090.01216.14
7.2.00.0130.00816.14
7.1.330.0090.00615.97
7.1.320.0050.00315.82
7.1.310.0130.00914.80
7.1.300.0100.00914.75
7.1.290.0150.00614.63
7.1.280.0200.00414.80
7.1.270.0120.00814.83
7.1.260.0130.01114.81
7.1.250.0130.00614.53

preferences:
31.18 ms | 403 KiB | 5 Q