3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr['a'] = array(); $arr['b'] = array(); $a = &$arr['a']; $b = $arr['b']; $a['1'] = 999; $b['1'] = 111; print_r($arr);

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.0130.00318.30
8.3.50.0110.00621.94
8.3.40.0090.00618.60
8.3.30.0060.00919.22
8.3.20.0070.00020.15
8.3.10.0000.00722.10
8.3.00.0030.00722.40
8.2.180.0140.00416.50
8.2.170.0070.00722.96
8.2.160.0000.01322.12
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0160.00326.16
8.2.120.0080.00019.36
8.2.110.0070.00422.13
8.2.100.0000.01219.64
8.2.90.0040.00418.91
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0070.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00418.04
8.2.20.0070.00317.53
8.2.10.0070.00017.66
8.2.00.0040.00417.60
8.1.280.0110.00625.92
8.1.270.0030.00622.03
8.1.260.0040.00426.35
8.1.250.0070.00328.09
8.1.240.0040.00423.82
8.1.230.0030.00718.80
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0040.00417.41
8.1.180.0050.00318.10
8.1.170.0030.00518.65
8.1.160.0040.00423.78
8.1.150.0040.00418.62
8.1.140.0040.00417.38
8.1.130.0040.00417.93
8.1.120.0000.00717.26
8.1.110.0000.00717.37
8.1.100.0030.00317.37
8.1.90.0020.00517.35
8.1.80.0030.00317.36
8.1.70.0040.00417.39
8.1.60.0100.00017.50
8.1.50.0000.00717.45
8.1.40.0040.00417.40
8.1.30.0000.00817.54
8.1.20.0030.00617.59
8.1.10.0000.00717.47
8.1.00.0040.00417.36
8.0.300.0080.00018.77
8.0.290.0030.00317.18
8.0.280.0030.00318.25
8.0.270.0000.00717.20
8.0.260.0080.00016.75
8.0.250.0070.00016.92
8.0.240.0000.00716.93
8.0.230.0040.00416.95
8.0.220.0030.00316.87
8.0.210.0000.00716.71
8.0.200.0030.00616.82
8.0.190.0000.00716.77
8.0.180.0000.00716.88
8.0.170.0020.00516.82
8.0.160.0030.00416.76
8.0.150.0030.00516.87
8.0.140.0020.00516.82
8.0.130.0030.00313.22
8.0.120.0070.00016.78
8.0.110.0040.00416.84
8.0.100.0040.00416.91
8.0.90.0070.00016.89
8.0.80.0060.01016.81
8.0.70.0040.00416.80
8.0.60.0040.00416.71
8.0.50.0040.00416.71
8.0.30.0150.00817.12
8.0.20.0050.01417.40
8.0.10.0070.00016.88
8.0.00.0030.01516.70
7.4.330.0000.00715.00
7.4.320.0000.00616.46
7.4.300.0070.00016.34
7.4.290.0070.00016.34
7.4.280.0030.00316.52
7.4.270.0070.00016.52
7.4.260.0070.00016.41
7.4.250.0000.00816.43
7.4.240.0030.00316.45
7.4.230.0000.00616.51
7.4.220.0100.00716.38
7.4.210.0100.01016.36
7.4.200.0000.00716.50
7.4.190.0000.00716.59
7.4.160.0060.01516.41
7.4.150.0170.00317.40
7.4.140.0100.00717.86
7.4.130.0090.00916.40
7.4.120.0110.00616.40
7.4.110.0080.00816.36
7.4.100.0060.01116.44
7.4.90.0130.01016.48
7.4.80.0090.01419.39
7.4.70.0030.01316.29
7.4.60.0030.01616.30
7.4.50.0030.00616.10
7.4.40.0060.00922.77
7.4.30.0000.01616.54
7.4.00.0030.01114.81
7.3.330.0000.00613.18
7.3.320.0050.00013.04
7.3.310.0070.00016.04
7.3.300.0000.00716.09
7.3.290.0120.00616.21
7.3.280.0120.00916.27
7.3.270.0130.01017.40
7.3.260.0100.00616.25
7.3.250.0100.00716.38
7.3.240.0080.00816.57
7.3.230.0090.01316.39
7.3.210.0080.01616.25
7.3.200.0120.00919.39
7.3.190.0120.01116.51
7.3.180.0080.00816.44
7.3.170.0120.00416.27
7.3.160.0060.00916.24
7.3.120.0080.00614.77
7.3.110.0070.01115.03
7.3.100.0060.00914.94
7.3.90.0000.00915.01
7.3.80.0040.00714.79
7.3.70.0030.01314.57
7.3.60.0080.00314.94
7.3.50.0130.00014.90
7.3.40.0060.01014.64
7.3.30.0000.01414.55
7.3.20.0060.01016.75
7.3.10.0070.01016.72
7.3.00.0060.00616.70
7.2.330.0250.02316.83
7.2.320.0190.00616.42
7.2.310.0090.00616.68
7.2.300.0060.01016.52
7.2.290.0130.00316.70
7.2.250.0060.01014.68
7.2.240.0120.00615.25
7.2.230.0090.00614.85
7.2.220.0060.00615.23
7.2.210.0030.01314.80
7.2.200.0120.00015.02
7.2.190.0080.00414.91
7.2.180.0080.00415.06
7.2.170.0030.01414.96
7.2.00.0030.01019.10
7.1.330.0070.00715.88
7.1.320.0030.00716.05
7.1.310.0000.01315.87
7.1.300.0000.01315.71
7.1.290.0000.01115.63
7.1.280.0070.00315.96
7.1.270.0000.00915.52
7.1.260.0100.00715.88
7.1.100.0000.01017.98
7.1.70.0070.00716.99
7.1.60.0110.01419.82
7.1.50.0100.01416.69
7.1.00.0030.07722.44
7.0.200.0090.00016.29
7.0.140.0030.07022.10
7.0.60.0130.08019.91
7.0.50.0030.04317.86
7.0.40.0070.07020.43
7.0.30.0200.05020.21
7.0.20.0270.05720.30
7.0.10.0070.08720.07
7.0.00.0070.08320.25
5.6.280.0000.07321.00
5.6.210.0100.07720.77
5.6.200.0100.07318.25
5.6.190.0070.07020.39
5.6.180.0200.05020.55
5.6.170.0330.07020.45
5.6.160.0100.08020.50
5.6.150.0100.07718.16
5.6.140.0030.07318.18
5.6.130.0000.04318.28
5.6.120.0100.05720.98
5.6.110.0100.08021.11
5.6.100.0070.08720.88
5.6.90.0130.05320.98
5.6.80.0130.06320.41
5.6.70.4470.04020.36
5.5.350.0170.03720.29
5.5.340.0070.08317.96
5.5.330.0100.07720.37
5.5.320.0300.06720.29
5.5.310.0170.09320.26
5.5.300.0100.03717.98
5.5.290.0030.04017.95
5.5.280.0100.05720.86
5.5.270.0030.04020.71
5.5.260.0070.05720.72
5.5.250.0130.06020.45
5.5.240.0070.02720.14
5.4.450.0770.05719.45
5.4.440.0670.05719.54
5.4.430.0170.04719.51
5.4.420.0200.05719.39
5.4.410.0130.05019.35
5.4.400.1770.00018.64
5.4.390.1470.00018.69
5.4.380.0270.05018.50
5.4.370.0100.05718.43
5.4.360.0130.05318.59
5.4.350.0200.05018.59
5.4.340.0200.04718.71
5.4.320.0060.03712.48
5.4.310.0080.03812.48
5.4.300.0060.03712.48
5.4.290.0040.03912.47
5.4.280.0090.04012.38
5.4.270.0070.05719.00
5.4.260.0070.05318.75
5.4.250.0070.06018.75
5.4.240.0100.05318.93
5.4.230.0100.05318.94
5.4.220.0100.05318.89
5.4.210.0130.06318.99
5.4.200.0100.06319.06
5.4.190.0170.04318.98
5.4.180.0030.06018.72
5.4.170.0070.06718.95
5.4.160.0070.05018.98
5.4.150.0270.07018.92
5.4.140.0100.07016.43
5.4.130.0100.04716.41
5.4.120.0070.05016.42
5.4.110.0100.05016.66
5.4.100.0070.04716.48
5.4.90.0130.06716.48
5.4.80.0170.05016.50
5.4.70.0130.04716.64
5.4.60.0030.05716.46
5.4.50.0130.05016.43
5.4.40.0070.05016.54
5.4.30.0070.05716.44
5.4.20.0100.06016.45
5.4.10.0130.06316.39
5.4.00.0100.04715.87
5.3.290.0070.03912.80
5.3.280.0100.07014.57
5.3.270.0100.07014.50
5.3.260.0070.05714.58
5.3.250.0070.05714.58
5.3.240.0070.05314.58
5.3.230.0030.06014.68
5.3.220.0100.04714.69
5.3.210.0170.04314.78
5.3.200.0070.05314.54
5.3.190.0200.06014.72
5.3.180.0070.06714.63
5.3.170.0070.05014.69
5.3.160.0130.07014.64
5.3.150.0200.06014.73
5.3.140.0070.08314.63
5.3.130.0100.07714.52
5.3.120.0070.06014.76
5.3.110.0170.04314.56
5.3.100.0100.05314.00
5.3.90.0130.04314.01
5.3.80.0030.05713.98
5.3.70.0030.07014.08
5.3.60.0070.05713.89
5.3.50.0000.06314.10
5.3.40.0030.07013.77
5.3.30.0100.05313.73
5.3.20.0100.05313.75
5.3.10.0130.04313.80
5.3.00.0030.05313.71
5.2.170.0070.05711.20
5.2.160.0200.04311.14
5.2.150.0100.03711.22
5.2.140.0100.04711.20
5.2.130.0070.04011.27
5.2.120.0100.03711.15
5.2.110.0130.03311.07
5.2.100.0100.03711.19
5.2.90.0100.05011.18
5.2.80.0070.04311.17
5.2.70.0070.04311.16
5.2.60.0100.04011.04
5.2.50.0030.04011.23
5.2.40.0100.04311.01
5.2.30.0000.05711.14
5.2.20.0100.03710.94
5.2.10.0100.04010.82
5.2.00.0030.06010.80
5.1.60.0030.03310.23
5.1.50.0100.04310.04
5.1.40.0070.03010.06
5.1.30.0030.05710.32
5.1.20.0030.05710.43
5.1.10.0070.03310.25
5.1.00.0070.04710.04
5.0.50.0030.0338.77
5.0.40.0100.0238.46
5.0.30.0100.0438.30
5.0.20.0030.0308.25
5.0.10.0000.0308.15
5.0.00.0100.0478.11
4.4.90.0030.0276.82
4.4.80.0030.0206.82
4.4.70.0100.0176.82
4.4.60.0000.0236.82
4.4.50.0030.0236.82
4.4.40.0030.0336.82
4.4.30.0000.0236.82
4.4.20.0070.0206.82
4.4.10.0030.0206.82
4.4.00.0070.0436.82
4.3.110.0000.0236.82
4.3.100.0030.0236.82
4.3.90.0030.0206.82
4.3.80.0030.0406.82
4.3.70.0070.0176.82
4.3.60.0130.0136.82
4.3.50.0030.0236.82
4.3.40.0070.0306.82
4.3.30.0030.0276.82
4.3.20.0070.0236.82
4.3.10.0030.0206.82
4.3.00.0270.0136.54

preferences:
43.07 ms | 401 KiB | 5 Q