3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[1] = 'this is the first value'; $a[true] = 'this value overrides the first value'; $a['1'] = 'so does this one';

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.0150.00016.34
8.3.50.0090.01221.79
8.3.40.0110.00418.72
8.3.30.0140.00019.17
8.3.20.0050.00220.18
8.3.10.0000.00823.67
8.3.00.0030.00519.25
8.2.180.0120.00316.61
8.2.170.0100.00322.96
8.2.160.0100.00620.41
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00022.32
8.2.110.0090.00022.11
8.2.100.0040.00717.91
8.2.90.0050.00219.21
8.2.80.0000.00717.97
8.2.70.0040.00417.48
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0000.00917.96
8.2.20.0040.00417.68
8.2.10.0000.00717.96
8.2.00.0040.00417.60
8.1.280.0070.01425.92
8.1.270.0110.00423.82
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0070.00419.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.25
8.1.190.0040.00417.30
8.1.180.0040.00418.10
8.1.170.0000.01118.52
8.1.160.0040.00422.00
8.1.150.0000.00718.56
8.1.140.0000.00717.37
8.1.130.0070.00017.88
8.1.120.0000.00717.40
8.1.110.0060.00317.28
8.1.100.0050.00317.43
8.1.90.0040.00417.39
8.1.80.0070.00017.39
8.1.70.0070.00017.37
8.1.60.0000.00817.40
8.1.50.0050.00317.35
8.1.40.0000.00717.38
8.1.30.0030.00517.45
8.1.20.0080.00017.58
8.1.10.0050.00217.52
8.1.00.0080.00017.46
8.0.300.0070.00018.77
8.0.290.0030.00517.18
8.0.280.0040.00418.42
8.0.270.0000.00717.19
8.0.260.0000.00616.75
8.0.250.0000.00716.92
8.0.240.0030.00516.78
8.0.230.0070.00016.75
8.0.220.0000.00716.72
8.0.210.0030.00316.82
8.0.200.0000.00716.89
8.0.190.0040.00416.91
8.0.180.0080.00016.88
8.0.170.0000.00816.84
8.0.160.0050.00216.79
8.0.150.0040.00416.71
8.0.140.0080.00016.69
8.0.130.0030.00513.29
8.0.120.0000.00716.66
8.0.110.0040.00416.86
8.0.100.0000.00716.88
8.0.90.0040.00416.86
8.0.80.0040.01116.75
8.0.70.0000.00716.64
8.0.60.0030.00416.62
8.0.50.0040.00416.95
8.0.30.0120.01016.98
8.0.20.0050.01417.40
8.0.10.0000.00717.00
8.0.00.0030.01416.65
7.4.330.0000.00515.09
7.4.320.0030.00316.52
7.4.300.0040.00416.48
7.4.290.0090.00016.51
7.4.280.0070.00016.51
7.4.270.0070.00016.54
7.4.260.0030.00316.51
7.4.250.0040.00416.54
7.4.240.0050.00216.40
7.4.230.0040.00416.56
7.4.220.0090.00916.43
7.4.210.0040.01016.57
7.4.200.0000.00716.46
7.4.190.0000.00716.38
7.4.160.0090.00616.45
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0090.00916.35
7.4.120.0100.01016.48
7.4.110.0050.01316.32
7.4.100.0060.01816.66
7.4.90.0100.00716.54
7.4.80.0030.01819.39
7.4.70.0110.00616.57
7.4.60.0070.01116.45
7.4.50.0030.00616.46
7.4.40.0090.00622.77
7.4.30.0080.00816.14
7.4.00.0050.01314.62
7.3.330.0050.00213.00
7.3.320.0000.00512.91
7.3.310.0030.00316.15
7.3.300.0030.00316.21
7.3.290.0090.00916.26
7.3.280.0070.00916.25
7.3.270.0060.01217.40
7.3.260.0130.01016.19
7.3.250.0130.00416.48
7.3.240.0110.01116.25
7.3.230.0060.01016.39
7.3.210.0070.01116.13
7.3.200.0080.01419.39
7.3.190.0100.00616.59
7.3.180.0110.00616.32
7.3.170.0120.00316.27
7.3.160.0050.01016.41
7.3.120.0100.00514.90
7.3.110.0060.01214.46
7.3.100.0040.01114.47
7.3.90.0090.00914.76
7.3.80.0040.00714.66
7.3.70.0000.01314.93
7.3.60.0090.00614.77
7.3.50.0070.00314.78
7.3.40.0060.01014.73
7.3.30.0060.00614.86
7.3.20.0170.00016.34
7.3.10.0030.01216.48
7.3.00.0030.01016.62
7.2.330.0030.01616.56
7.2.320.0170.00316.23
7.2.310.0070.01016.63
7.2.300.0160.00616.40
7.2.290.0090.00916.44
7.2.250.0100.01014.68
7.2.240.0070.01414.77
7.2.230.0070.01115.10
7.2.220.0090.00614.87
7.2.210.0080.00814.42
7.2.200.0060.00314.79
7.2.190.0060.00915.02
7.2.180.0000.01514.92
7.2.170.0100.00614.91
7.2.00.0120.00818.83
7.1.330.0030.01215.65
7.1.320.0030.01015.58
7.1.310.0030.01015.80
7.1.300.0060.00915.44
7.1.290.0170.00015.33
7.1.280.0080.00815.78
7.1.270.0030.00915.32
7.1.260.0090.00615.80
7.1.100.0070.00318.14
7.1.70.0000.00817.07
7.1.60.0100.01019.33
7.1.50.0090.01316.51
7.1.00.0130.06722.28
7.0.200.0070.00716.63
7.0.140.0070.06321.99
7.0.60.0070.09019.91
7.0.50.0070.06717.80
7.0.40.0070.06319.96
7.0.30.0400.04020.09
7.0.20.0330.06020.16
7.0.10.0070.06720.07
7.0.00.0200.06020.32
5.6.280.0070.07320.86
5.6.210.0100.07320.52
5.6.200.0130.06718.11
5.6.190.0200.07020.35
5.6.180.0200.04320.57
5.6.170.0100.05720.38
5.6.160.0030.04320.32
5.6.150.0000.08718.18
5.6.140.0130.07718.11
5.6.130.0030.04018.16
5.6.120.0030.05720.98
5.6.110.0030.09021.00
5.6.100.0130.07720.97
5.6.90.0070.08720.98
5.6.80.0070.04020.50
5.6.70.4530.04020.48
5.5.350.0030.04020.43
5.5.340.0070.05717.92
5.5.330.0070.03720.21
5.5.320.0530.06720.30
5.5.310.0270.06020.31
5.5.300.0030.06318.07
5.5.290.0130.07017.89
5.5.280.0000.04720.64
5.5.270.0100.08020.76
5.5.260.0130.05320.85
5.5.250.0100.07020.54
5.5.240.0270.06720.27
5.4.450.0300.05719.48
5.4.440.0770.05319.32
5.4.430.0870.05319.12
5.4.420.0670.00019.40
5.4.410.0070.06718.72
5.4.400.0770.05018.83
5.4.390.1270.05018.72
5.4.380.0270.05318.59
5.4.370.0070.05318.65
5.4.360.0000.06018.66
5.4.350.0080.05511.97
5.4.340.0090.03911.96
5.4.320.0080.03712.45
5.4.310.0080.03512.45
5.4.300.0040.03712.45
5.4.290.0050.05512.45
5.4.280.0040.03812.32
5.4.270.0070.03912.32
5.4.260.0100.03812.32
5.4.250.0080.04412.32
5.4.240.0090.03312.32
5.4.230.0090.03912.31
5.4.220.0090.03612.31
5.4.210.0120.03612.31
5.4.200.0070.03712.31
5.4.190.0050.03912.30
5.4.180.0060.03612.31
5.4.170.0060.03712.32
5.4.160.0070.04312.31
5.4.150.0080.04912.31
5.4.140.0070.04511.99
5.4.130.0090.03311.98
5.4.120.0080.03311.94
5.4.110.0060.03511.94
5.4.100.0090.03511.93
5.4.90.0090.04211.94
5.4.80.0100.04611.93
5.4.70.0060.03911.93
5.4.60.0160.03211.93
5.4.50.0060.03911.93
5.4.40.0040.03611.92
5.4.30.0090.03611.92
5.4.20.0080.03411.92
5.4.10.0070.03311.92
5.4.00.0060.03411.41
5.3.290.0090.04312.80
5.3.280.0050.03912.71
5.3.270.0050.04012.72
5.3.260.0080.03712.71
5.3.250.0080.03612.72
5.3.240.0060.03812.72
5.3.230.0100.03812.70
5.3.220.0050.03712.68
5.3.210.0090.04312.68
5.3.200.0070.03512.68
5.3.190.0070.03612.68
5.3.180.0050.04612.68
5.3.170.0080.04212.67
5.3.160.0050.03712.68
5.3.150.0070.03612.67
5.3.140.0090.03312.66
5.3.130.0080.03712.66
5.3.120.0030.04412.66
5.3.110.0080.03912.66
5.3.100.0120.03312.12
5.3.90.0060.03812.08
5.3.80.0080.03712.08
5.3.70.0050.04112.07
5.3.60.0070.03612.07
5.3.50.0050.03812.00
5.3.40.0070.03612.00
5.3.30.0090.03711.94
5.3.20.0050.04211.70
5.3.10.0100.03211.67
5.3.00.0070.03411.65
5.2.170.0070.0289.15
5.2.160.0060.0389.15
5.2.150.0050.0359.15
5.2.140.0090.0409.15
5.2.130.0080.0279.11
5.2.120.0060.0289.11
5.2.110.0040.0309.11
5.2.100.0060.0329.11
5.2.90.0090.0319.11
5.2.80.0080.0329.11
5.2.70.0070.0289.11
5.2.60.0050.0319.05
5.2.50.0060.0349.03
5.2.40.0070.0269.00
5.2.30.0040.0318.98
5.2.20.0050.0288.96
5.2.10.0050.0288.89
5.2.00.0050.0288.75
5.1.60.0050.0238.05
5.1.50.0040.0248.05
5.1.40.0050.0298.02
5.1.30.0070.0248.37
5.1.20.0050.0268.39
5.1.10.0070.0328.12
5.1.00.0050.0288.13
5.0.50.0050.0276.59
5.0.40.0040.0256.46
5.0.30.0030.0326.27
5.0.20.0070.0176.25
5.0.10.0050.0196.22
5.0.00.0050.0286.21
4.4.90.0050.0134.78
4.4.80.0030.0184.75
4.4.70.0040.0184.76
4.4.60.0020.0194.75
4.4.50.0030.0144.77
4.4.40.0020.0274.71
4.4.30.0050.0134.76
4.4.20.0020.0164.84
4.4.10.0040.0214.85
4.4.00.0000.0284.76
4.3.110.0020.0174.67
4.3.100.0030.0154.66
4.3.90.0020.0164.63
4.3.80.0030.0244.59
4.3.70.0010.0164.63
4.3.60.0030.0164.63
4.3.50.0050.0134.63
4.3.40.0050.0234.54
4.3.30.0010.0183.27
4.3.20.0030.0193.25
4.3.10.0020.0183.21
4.3.00.0000.0236.56

preferences:
39.96 ms | 401 KiB | 5 Q