3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1 => 1, 'c'=>2, 'b'=>3, 'd'=>4); $a[] = "first value with implicit key"; unset($a['c']); $a['a'] = "new a"; $a[] = "second value with implicit key"; $a['b'] = "replaced b"; var_export($a);

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.1.100.0030.00617.28
8.1.90.0030.00617.31
8.1.80.0000.01117.24
8.1.70.0040.00417.39
8.1.60.0080.00017.57
8.1.50.0080.00017.50
8.1.40.0040.00417.45
8.1.30.0040.00417.58
8.1.20.0040.00417.49
8.1.10.0060.00317.36
8.1.00.0030.00617.46
8.0.230.0000.00716.88
8.0.220.0070.00016.80
8.0.210.0050.00216.79
8.0.200.0040.00416.87
8.0.190.0040.00416.89
8.0.180.0050.00216.73
8.0.170.0020.00916.80
8.0.160.0040.00416.70
8.0.150.0000.00716.78
8.0.140.0040.00416.82
8.0.130.0050.00013.21
8.0.120.0000.00716.77
8.0.110.0000.00716.83
8.0.100.0000.00816.71
8.0.90.0080.00016.62
8.0.80.0090.01216.86
8.0.70.0040.00416.77
8.0.60.0040.00416.70
8.0.50.0040.00416.66
8.0.30.0100.01017.01
8.0.20.0100.01017.40
8.0.10.0000.00716.82
8.0.00.0080.00916.63
7.4.300.0030.00316.40
7.4.290.0030.00316.52
7.4.280.0050.00216.52
7.4.270.0030.00316.61
7.4.260.0000.00816.59
7.4.250.0030.00316.44
7.4.240.0030.00316.64
7.4.230.0030.00316.58
7.4.220.0000.00716.62
7.4.210.0100.00916.58
7.4.200.0070.00016.46
7.4.160.0090.00616.68
7.4.140.0100.00917.86
7.4.130.0060.01216.28
7.4.120.0080.00916.45
7.4.110.0100.00716.61
7.4.100.0060.01216.52
7.4.90.0070.01116.44
7.4.80.0110.01419.39
7.4.70.0120.00416.32
7.4.60.0070.00716.68
7.4.50.0150.00016.22
7.4.40.0000.02016.47
7.4.00.0060.00914.73
7.3.330.0000.00513.15
7.3.320.0060.00013.25
7.3.310.0030.00316.42
7.3.300.0070.00016.21
7.3.290.0070.00016.16
7.3.280.0080.01016.30
7.3.260.0090.00816.28
7.3.250.0100.00716.35
7.3.240.0110.00616.30
7.3.230.0170.00316.48
7.3.210.0060.00916.21
7.3.200.0030.01216.45
7.3.190.0060.01316.60
7.3.180.0140.00716.44
7.3.170.0060.01216.29
7.3.160.0130.00916.49
7.2.330.0140.00416.57
7.2.320.0090.00816.32
7.2.310.0080.00816.64
7.2.300.0040.01216.33
7.2.290.0090.00616.66
7.2.60.0090.00616.85
7.2.50.0110.00316.49
7.2.40.1440.01417.78
7.2.30.0820.01217.63
7.2.20.0900.01117.92
7.2.10.0840.01317.57
7.2.00.0900.01117.69
7.1.200.0030.00615.45
7.1.160.1330.01316.77
7.1.150.0840.01116.57
7.1.140.0910.01216.77
7.1.130.1040.01116.74
7.1.120.1140.01016.82
7.1.110.1210.00916.19
7.1.100.1070.01116.00
7.1.90.1060.01015.99
7.1.80.1090.01016.17
7.1.70.0930.01315.31
7.1.60.1120.01533.15
7.1.50.1160.01332.77
7.1.40.1560.01632.50
7.1.30.1190.01432.58
7.1.20.1340.01832.56
7.1.10.0730.01314.74
7.1.00.0720.01214.64
7.0.290.1880.01516.19
7.0.270.0790.01016.07
7.0.260.0730.01016.13
7.0.250.0660.01115.46
7.0.240.0960.01015.63
7.0.230.0640.01115.89
7.0.220.0710.00915.76
7.0.210.0590.01014.58
7.0.200.0630.01114.89
7.0.190.0540.01114.80
7.0.180.0680.01214.44
7.0.170.0580.01114.59
7.0.160.0780.01314.40
7.0.150.0650.01114.45
7.0.140.0570.01314.63
7.0.130.0520.01114.74
7.0.120.0500.01314.62
7.0.110.0660.00914.46
7.0.100.0470.01114.38
7.0.90.0620.01314.44
7.0.80.0630.01114.40
7.0.70.0390.01314.44
7.0.60.0310.01114.28
7.0.50.0740.01414.48
7.0.40.0530.01314.59
7.0.30.0580.01314.66
7.0.20.0520.01314.42
7.0.10.0640.01114.58
7.0.00.0560.01414.55
5.6.300.0200.06920.88
5.6.290.0190.05720.86
5.6.280.0170.06920.80
5.6.270.0210.07120.88
5.6.260.0240.06720.86
5.6.250.0220.06020.81
5.6.240.0180.06920.82
5.6.230.0170.06620.86
5.6.220.0200.07220.75
5.6.210.0200.06020.98
5.6.200.0210.06820.71
5.6.190.0190.06220.77
5.6.180.0200.06320.84
5.6.170.0220.06520.83
5.6.160.0200.06520.78
5.6.150.0230.07220.86
5.6.140.0210.06520.81
5.6.130.0210.07020.79
5.6.120.0200.07320.72
5.6.110.0200.06420.78
5.6.100.0180.06820.89
5.6.90.0190.06020.76
5.6.80.0180.06120.10
5.6.70.0180.06420.23
5.6.60.0180.06820.18
5.6.50.0170.06020.17
5.6.40.0190.05520.14
5.6.30.0190.06820.20
5.6.20.0190.07520.14
5.6.10.0180.06320.14
5.6.00.0170.06520.13
5.5.380.0210.06917.44
5.5.370.0160.07117.44
5.5.360.0180.05517.47
5.5.350.0150.05517.41
5.5.340.0220.06317.88
5.5.330.0170.07617.98
5.5.320.0120.06517.94
5.5.310.0230.07117.74
5.5.300.0180.07217.98
5.5.290.0200.05517.74
5.5.280.0220.07017.79
5.5.270.0210.05817.86
5.5.260.0110.07517.95
5.5.250.0200.06517.75
5.5.240.0140.05317.31
5.5.230.0210.07517.38
5.5.220.0140.07417.20
5.5.210.0170.06017.38
5.5.200.0190.07017.13
5.5.190.0120.05617.15
5.5.180.0200.07117.34
5.5.160.0190.05717.42
5.5.150.0210.06117.31
5.5.140.0220.06117.31
5.5.130.0160.05917.12
5.5.120.0170.07417.09
5.5.110.0210.06817.30
5.5.100.0170.07317.19
5.5.90.0190.04917.32
5.5.80.0190.05217.30
5.5.70.0140.06817.14
5.5.60.0150.06917.29
5.5.50.0150.07217.21
5.5.40.0140.05617.02
5.5.30.0200.06417.20
5.5.20.0160.06716.98
5.5.10.0150.07417.23
5.5.00.0180.06617.20
5.4.450.0190.07619.33
5.4.440.0170.08019.18
5.4.430.0250.07019.17
5.4.420.0240.06619.25
5.4.410.0190.07319.11
5.4.400.0150.05718.77
5.4.390.0170.08018.98
5.4.380.0150.07319.04
5.4.370.0220.07219.06
5.4.360.0160.07718.99
5.4.350.0150.07318.97
5.4.340.0080.06218.94
5.4.320.0180.07519.05
5.4.310.0200.06918.77
5.4.300.0180.06918.85
5.4.290.0180.05218.93
5.4.280.0210.05419.02
5.4.270.0240.06119.08
5.4.260.0210.04919.00
5.4.250.0120.05918.78
5.4.240.0190.07418.91
5.4.230.0210.07019.16
5.4.220.0130.05818.76
5.4.210.0160.05619.16
5.4.200.0190.07418.96
5.4.190.0230.06118.96
5.4.180.0150.05218.92
5.4.170.0230.06319.00
5.4.160.0160.06818.87
5.4.150.0240.06318.91
5.4.140.0220.06316.51
5.4.130.0110.05616.48
5.4.120.0180.05616.41
5.4.110.0140.05916.36
5.4.100.0130.05116.48
5.4.90.0210.06316.58
5.4.80.0150.06116.43
5.4.70.0130.05616.57
5.4.60.0160.05116.53
5.4.50.0190.06516.49
5.4.40.0130.05416.59
5.4.30.0150.05816.59
5.4.20.0220.06216.39
5.4.10.0150.04816.53
5.4.00.0140.05415.69
5.3.290.0170.06914.68
5.3.280.0140.06114.73
5.3.270.0170.06614.74
5.3.260.0130.05914.80
5.3.250.0100.05714.41
5.3.240.0190.05614.56
5.3.230.0140.06514.74
5.3.220.0220.04914.54
5.3.210.0100.07214.71
5.3.200.0140.06314.49
5.3.190.0140.07414.37
5.3.180.0150.05114.76
5.3.170.0160.04814.55
5.3.160.0140.05314.72
5.3.150.0140.05814.55
5.3.140.0170.05214.36
5.3.130.0180.07214.65
5.3.120.0180.07114.69
5.3.110.0230.06614.69
5.3.100.0130.05814.12
5.3.90.0150.05514.00
5.3.80.0120.05514.08
5.3.70.0150.06614.08
5.3.60.0190.05614.06
5.3.50.0190.05914.03
5.3.40.0160.06814.12
5.3.30.0170.06213.90
5.3.20.0130.04913.80
5.3.10.0170.04313.64
5.3.00.0140.06913.56
5.2.170.0160.05411.37
5.2.160.0100.04111.29
5.2.150.0100.04611.37
5.2.140.0130.05411.29
5.2.130.0140.04311.24
5.2.120.0150.05411.22
5.2.110.0090.04211.14
5.2.100.0100.04211.03
5.2.90.0150.05311.24
5.2.80.0140.05511.19
5.2.70.0110.05911.20
5.2.60.0110.04811.17
5.2.50.0080.04511.25
5.2.40.0110.03911.11
5.2.30.0180.05111.20
5.2.20.0150.03811.00
5.2.10.0160.04511.03
5.2.00.0160.04710.70
5.1.60.0130.0389.97
5.1.50.0110.0369.96
5.1.40.0110.03310.21
5.1.30.0150.03210.62
5.1.20.0120.04910.34
5.1.10.0130.04610.29
5.1.00.0150.04510.14
5.0.50.0150.0348.53
5.0.40.0080.0288.62
5.0.30.0070.0438.48
5.0.20.0100.0338.48
5.0.10.0120.0278.48
5.0.00.0020.0488.48
4.4.90.0080.0208.48
4.4.80.0110.0238.48
4.4.70.0070.0208.48
4.4.60.0080.0228.48
4.4.50.0080.0218.48
4.4.40.0060.0358.48
4.4.30.0070.0238.48
4.4.20.0040.0258.48
4.4.10.0060.0348.48
4.4.00.0060.0468.48
4.3.110.0060.0228.48
4.3.100.0080.0198.48
4.3.90.0080.0268.48
4.3.80.0080.0418.48
4.3.70.0040.0228.48
4.3.60.0060.0208.48
4.3.50.0080.0248.48
4.3.40.0110.0298.48
4.3.30.0050.0238.48
4.3.20.0050.0258.48
4.3.10.0060.0238.48
4.3.00.0060.0268.48

preferences:
36.33 ms | 406 KiB | 5 Q