3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar1 = array(); for($i = 0; $i < 1000; $i++){ $ar1[] = 'a' . $i; } unset($ar1['775']); unset($ar1['175']); unset($ar1['75']); echo count($ar1);

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.3.60.0200.00018.43
8.3.50.0110.00721.27
8.3.40.0110.00418.79
8.3.30.0040.01118.84
8.3.20.0050.00318.95
8.3.10.0080.00021.08
8.3.00.0040.00423.48
8.2.180.0090.00616.36
8.2.170.0100.01022.96
8.2.160.0070.01422.21
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.95
8.2.110.0050.00520.41
8.2.100.0040.00817.68
8.2.90.0000.00819.29
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00419.36
8.2.20.0000.00717.68
8.2.10.0000.00817.73
8.2.00.0060.00317.71
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0030.00328.09
8.1.240.0030.01020.75
8.1.230.0040.00821.07
8.1.220.0040.00418.77
8.1.210.0000.00818.79
8.1.200.0030.00617.48
8.1.190.0080.00017.66
8.1.180.0000.00818.10
8.1.170.0050.00318.52
8.1.160.0030.00618.95
8.1.150.0040.00418.76
8.1.140.0000.00917.53
8.1.130.0000.00717.79
8.1.120.0000.00717.53
8.1.110.0030.00617.43
8.1.100.0000.00717.57
8.1.90.0070.00017.57
8.1.80.0070.00017.58
8.1.70.0000.00717.48
8.1.60.0080.00017.57
8.1.50.0070.00017.48
8.1.40.0060.00317.48
8.1.30.0050.00217.71
8.1.20.0030.00517.61
8.1.10.0000.00817.63
8.1.00.0040.00417.44
8.0.300.0040.00420.16
8.0.290.0000.00817.18
8.0.280.0000.00818.45
8.0.270.0040.00417.23
8.0.260.0000.00716.80
8.0.250.0000.00717.01
8.0.240.0030.00616.93
8.0.230.0000.00817.06
8.0.220.0030.00316.98
8.0.210.0030.00316.89
8.0.200.0000.00617.08
8.0.190.0000.00817.03
8.0.180.0000.00716.87
8.0.170.0040.00416.87
8.0.160.0040.00417.04
8.0.150.0070.00016.89
8.0.140.0080.00016.88
8.0.130.0000.00613.32
8.0.120.0040.00416.82
8.0.110.0000.00717.01
8.0.100.0000.00716.93
8.0.90.0050.00316.83
8.0.80.0060.01017.00
8.0.70.0000.00717.00
8.0.60.0030.00516.78
8.0.50.0040.00416.79
8.0.30.0080.01117.14
8.0.20.0100.01217.40
8.0.10.0030.00517.07
8.0.00.0080.01317.03
7.4.330.0070.00014.93
7.4.320.0030.00316.56
7.4.300.0030.00316.70
7.4.290.0000.00716.62
7.4.280.0070.00016.51
7.4.270.0000.00716.62
7.4.260.0030.00313.34
7.4.250.0000.00816.62
7.4.240.0070.00016.66
7.4.230.0050.00216.73
7.4.220.0100.01116.57
7.4.210.0070.00916.60
7.4.200.0030.00316.77
7.4.190.0030.00316.51
7.4.160.0170.00716.61
7.4.150.0120.00617.40
7.4.140.0050.01217.86
7.4.130.0110.00716.57
7.4.120.0090.01216.58
7.4.110.0060.01216.60
7.4.100.0060.01716.57
7.4.90.0110.00716.42
7.4.80.0060.01019.39
7.4.70.0100.00716.61
7.4.60.0080.00816.46
7.4.50.0030.00616.61
7.4.40.0040.01422.77
7.4.30.0070.01416.71
7.4.00.0000.01214.91
7.3.330.0050.00013.17
7.3.320.0060.00013.18
7.3.310.0000.00716.26
7.3.300.0000.00716.32
7.3.290.0140.00416.38
7.3.280.0050.01216.30
7.3.270.0100.00817.40
7.3.260.0120.00818.24
7.3.250.0070.01416.40
7.3.240.0130.00316.27
7.3.230.0150.00616.61
7.3.210.0130.00316.58
7.3.200.0090.00919.39
7.3.190.0120.00916.71
7.3.180.0090.00616.55
7.3.170.0120.00916.48
7.3.160.0130.00316.42
7.3.120.0030.01314.87
7.2.330.0090.00916.88
7.2.320.0100.01016.76
7.2.310.0170.00616.48
7.2.300.0130.00316.71
7.2.290.0170.00016.90
7.2.00.0060.00619.60
7.1.200.0070.00715.68
7.1.100.0030.00917.86
7.1.70.0000.00717.15
7.1.60.0130.01319.08
7.1.50.0140.01017.00
7.1.00.0030.03322.35
7.0.200.0030.00716.93
7.0.140.0030.07721.96
7.0.60.0070.06020.04
7.0.50.0070.07017.94
7.0.40.0070.09020.05
7.0.30.0300.07720.32
7.0.20.0300.08320.00
7.0.10.0100.04020.30
7.0.00.0030.05320.03
5.6.280.0030.07321.16
5.6.210.0100.06320.80
5.6.200.0100.08018.22
5.6.190.0030.07020.49
5.6.180.0270.07020.63
5.6.170.0300.08020.51
5.6.160.0000.06320.52
5.6.150.0030.05318.22
5.6.140.0100.08018.19
5.6.130.0130.07018.14
5.6.120.0070.04021.13
5.6.110.0070.05021.00
5.6.100.0070.08321.04
5.6.90.0100.08020.95
5.6.80.0100.05020.47
5.5.350.0100.07720.43
5.5.340.0070.08317.98
5.5.330.0100.08720.40
5.5.320.0000.04320.29
5.5.310.0200.06720.41
5.5.300.0100.07717.91
5.5.290.0070.08717.90
5.5.280.0070.04320.90
5.5.270.0070.04320.78
5.5.260.0070.05021.01
5.5.250.0070.05320.77
5.5.240.0400.06020.19
5.4.450.0270.07019.42
5.4.440.0300.05719.42
5.4.430.0230.07319.45
5.4.420.0230.07719.54
5.4.410.0270.07019.41
5.4.400.0330.03319.08
5.4.390.0130.04319.24
5.4.380.0230.07319.08
5.4.370.0130.04018.92
5.4.360.0330.06719.22
5.4.350.0200.05719.16
5.4.340.0200.07719.15
5.4.320.0370.06019.09
5.4.310.0270.07319.25
5.4.300.0200.05018.88
5.4.290.0270.06719.23
5.4.280.0200.05318.80
5.4.270.0270.06319.07
5.4.260.0170.04018.92
5.4.250.0300.05019.25
5.4.240.0270.07019.09
5.4.230.0270.07318.89
5.4.220.0230.05019.02
5.4.210.0270.06318.84
5.4.200.0230.07319.12
5.4.190.0200.04718.87
5.4.180.0230.04319.24
5.4.170.0130.04319.08
5.4.160.0170.05318.88
5.4.150.0200.07019.22
5.4.140.0130.06716.43
5.4.130.0300.06016.23
5.4.120.0230.04316.27
5.4.110.0300.04316.58
5.4.100.0130.07316.39
5.4.90.0200.07016.37
5.4.80.0270.06716.27
5.4.70.0200.04016.42
5.4.60.0300.06016.22
5.4.50.0270.07016.41
5.4.40.0230.07016.41
5.4.30.0300.06016.36
5.4.20.0300.06016.09
5.4.10.0330.06316.24
5.4.00.0270.06015.88
5.3.290.0330.06314.68
5.3.280.0230.07014.84
5.3.270.0330.04014.71
5.3.260.0230.05314.61
5.3.250.0170.05014.70
5.3.240.0230.04714.61
5.3.230.0300.07014.61
5.3.220.0230.06314.68
5.3.210.0330.07714.69
5.3.200.0130.08314.59
5.3.190.0300.06714.58
5.3.180.0270.04014.82
5.3.170.0200.07714.75
5.3.160.0270.05714.60
5.3.150.0270.05314.68
5.3.140.0300.07014.77
5.3.130.0230.07014.64
5.3.120.0270.07314.73
5.3.110.0200.07014.57
5.3.100.0270.06714.07
5.3.90.0130.05314.05
5.3.80.0200.05014.21
5.3.70.0230.03714.16
5.3.60.0300.06714.11
5.3.50.0270.07014.09
5.3.40.0270.05313.96
5.3.30.0200.05013.95
5.3.20.0230.03013.69
5.3.10.0230.05313.69
5.3.00.0230.06713.71
5.2.170.0330.05012.10
5.2.160.0200.04312.10
5.2.150.0200.04712.10
5.2.140.0200.02712.10
5.2.130.0100.03312.10
5.2.120.0270.05312.10
5.2.110.0200.03012.10
5.2.100.0230.06012.10
5.2.90.0270.05012.10
5.2.80.0130.05012.10
5.2.70.0200.04312.10
5.2.60.0200.05012.10
5.2.50.0200.04012.10
5.2.40.0230.04712.10
5.2.30.0130.06312.10
5.2.20.0170.04712.10
5.2.10.0170.05012.10
5.2.00.0130.05312.10
5.1.60.0130.05012.10
5.1.50.0170.05312.10
5.1.40.0200.04312.10
5.1.30.0200.04012.10
5.1.20.0170.02712.10
5.1.10.0170.02312.10
5.1.00.0200.02712.10
5.0.50.0130.03712.10
5.0.40.0100.03312.10
5.0.30.0100.06012.10
5.0.20.0130.04012.10
5.0.10.0100.02712.10
5.0.00.0030.05312.10
4.4.90.0100.03712.10
4.4.80.0070.02712.10
4.4.70.0070.03712.10
4.4.60.0130.03012.10
4.4.50.0070.02712.10
4.4.40.0170.02712.10
4.4.30.0030.03012.10
4.4.20.0070.01712.10
4.4.10.0070.02012.10
4.4.00.0030.06012.10
4.3.110.0070.03312.10
4.3.100.0100.02712.10
4.3.90.0030.03712.10
4.3.80.0030.03012.10
4.3.70.0070.02312.10
4.3.60.0100.02712.10
4.3.50.0030.02012.10
4.3.40.0070.02312.10
4.3.30.0000.02012.10
4.3.20.0000.02312.10
4.3.10.0000.02312.10
4.3.00.0070.01712.10

preferences:
70.93 ms | 400 KiB | 5 Q