3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test1 extends ArrayObject { } class Test2 extends ArrayObject { function offsetGet($key) { return parent::offsetGet($key); } } $t1 = new Test1(); $t1['huba'] = array('one','two'); $t1['huba'][] = 'three'; print_r($t1); $t2 = new Test2(); $t2['huba'] = array('one','two'); $t2['huba'][] = 'three'; print_r($t2);

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.40.0040.01118.76
8.3.30.0150.00319.03
8.3.20.0070.00020.16
8.3.10.0040.00423.35
8.3.00.0080.00020.75
8.2.170.0040.01122.96
8.2.160.0070.00720.38
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00420.72
8.2.110.0090.00022.21
8.2.100.0070.00320.35
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0080.00417.78
8.2.50.0000.00918.07
8.2.40.0040.00419.94
8.2.30.0000.00718.30
8.2.20.0000.00817.76
8.2.10.0000.00717.94
8.2.00.0000.00817.68
8.1.270.0040.00423.84
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00321.96
8.1.230.0110.00019.23
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0060.00318.46
8.1.160.0080.00021.89
8.1.150.0000.00818.64
8.1.140.0040.00417.34
8.1.130.0030.00317.88
8.1.120.0040.00417.40
8.1.110.0000.00717.39
8.1.100.0000.00717.47
8.1.90.0050.00217.28
8.1.80.0000.00717.42
8.1.70.0070.00017.29
8.1.60.0040.00417.59
8.1.50.0000.00817.43
8.1.40.0040.00417.53
8.1.30.0030.00617.60
8.1.20.0000.00817.64
8.1.10.0020.00517.55
8.1.00.0000.00817.42
8.0.300.0070.00018.77
8.0.290.0000.00816.61
8.0.280.0070.00018.34
8.0.270.0000.00717.25
8.0.260.0030.00317.21
8.0.250.0030.00316.96
8.0.240.0030.00616.93
8.0.230.0030.00316.95
8.0.220.0000.00716.90
8.0.210.0000.00716.88
8.0.200.0000.00916.98
8.0.190.0080.00016.95
8.0.180.0030.00316.83
8.0.170.0040.00416.86
8.0.160.0030.00316.90
8.0.150.0040.00316.78
8.0.140.0030.00416.76
8.0.130.0030.00313.34
8.0.120.0000.00816.76
8.0.110.0070.00016.79
8.0.100.0000.00716.90
8.0.90.0060.00316.81
8.0.80.0070.01016.96
8.0.70.0070.00016.84
8.0.60.0030.00316.85
8.0.50.0040.00416.75
8.0.30.0050.01616.90
8.0.20.0070.01117.40
8.0.10.0040.00416.96
8.0.00.0090.00816.79
7.4.330.0000.00515.09
7.4.320.0000.00716.56
7.4.300.0000.00616.52
7.4.290.0030.00316.56
7.4.280.0050.00216.56
7.4.270.0040.00416.55
7.4.260.0000.00816.49
7.4.250.0030.00516.46
7.4.240.0050.00216.52
7.4.230.0000.00816.59
7.4.220.0000.01716.49
7.4.210.0090.01216.64
7.4.200.0030.00316.68
7.4.160.0040.01116.40
7.4.150.0110.00717.40
7.4.140.0130.01017.86
7.4.130.0080.00816.48
7.4.120.0080.00916.45
7.4.110.0170.00016.52
7.4.100.0120.00916.53
7.4.90.0100.01216.60
7.4.80.0060.01219.39
7.4.70.0040.01216.64
7.4.60.0040.01816.55
7.4.50.0000.00916.48
7.4.40.0080.00816.57
7.4.30.0070.01016.65
7.4.10.0070.01014.71
7.4.00.0080.00814.94
7.3.330.0060.00013.29
7.3.320.0060.00013.37
7.3.310.0000.00816.32
7.3.300.0040.00416.29
7.3.290.0140.00016.44
7.3.280.0070.00916.43
7.3.270.0120.00617.40
7.3.260.0070.01016.47
7.3.250.0110.01116.41
7.3.240.0140.00616.57
7.3.230.0110.00516.52
7.3.210.0080.00816.38
7.3.200.0090.00619.39
7.3.190.0060.01216.37
7.3.180.0100.01016.43
7.3.170.0060.00916.55
7.3.160.0090.00616.31
7.3.130.0070.01114.90
7.3.120.0030.01414.89
7.3.110.0060.01314.86
7.3.100.0030.00614.88
7.3.90.0090.00314.70
7.3.80.0000.01115.11
7.3.70.0150.00014.91
7.3.60.0000.01214.81
7.3.50.0070.01014.82
7.3.40.0060.00614.86
7.3.30.0000.00814.58
7.3.20.0060.01016.50
7.3.10.0040.00616.52
7.3.00.0060.01016.79
7.2.330.0070.01316.54
7.2.320.0090.00916.40
7.2.310.0090.00916.57
7.2.300.0170.00316.37
7.2.290.0140.00716.79
7.2.260.0080.00914.89
7.2.250.0070.01115.28
7.2.240.0100.00314.84
7.2.230.0080.00815.28
7.2.220.0060.00615.25
7.2.210.0000.01514.86
7.2.200.0060.00914.92
7.2.190.0090.00615.02
7.2.180.0060.00315.16
7.2.170.0030.00615.00
7.2.160.0000.01714.80
7.2.150.0100.00616.96
7.2.140.0090.00616.99
7.2.130.0060.01116.65
7.2.120.0130.00216.60
7.2.110.0070.00516.71
7.2.100.0030.01016.79
7.2.90.0150.01016.58
7.2.80.0140.00616.62
7.2.70.0130.00516.52
7.2.60.0150.00716.68
7.2.50.0100.00816.76
7.2.40.0110.01016.90
7.2.30.0230.00716.77
7.2.20.0160.00516.70
7.2.10.0120.00816.67
7.2.00.0070.01216.85
7.1.330.0040.01115.91
7.1.320.0090.00915.87
7.1.310.0030.01315.84
7.1.300.0060.01015.68
7.1.290.0030.00615.73
7.1.280.0040.00415.67
7.1.270.0030.00715.69
7.1.260.0090.00615.69
7.1.250.0110.00515.47
7.1.240.0030.00815.84
7.1.230.0070.00715.82
7.1.220.0030.01315.73
7.1.210.0060.00915.79
7.1.200.0110.00315.76
7.1.190.0100.00715.74
7.1.180.0000.01715.69
7.1.170.0070.01015.85
7.1.160.0070.00315.63
7.1.150.0000.01415.68
7.1.140.0070.00715.86
7.1.130.0090.00615.70
7.1.120.0040.01215.98
7.1.110.0000.01015.57
7.1.100.0030.01016.78
7.1.90.0000.01415.90
7.1.80.0090.00315.75
7.1.70.0040.00816.58
7.1.60.0050.01117.67
7.1.50.0170.00516.23
7.1.40.0030.01015.63
7.1.30.0070.01015.70
7.1.20.0040.01115.64
7.1.10.0040.00415.82
7.1.00.0110.03619.15
7.0.330.0030.01015.62
7.0.320.0130.00015.34
7.0.310.0070.00715.41
7.0.300.0030.00915.50
7.0.290.0060.00915.38
7.0.280.0030.01315.63
7.0.270.0090.00615.30
7.0.260.0040.00815.49
7.0.250.0000.01315.48
7.0.240.0100.00615.34
7.0.230.0100.00315.42
7.0.220.0000.01515.30
7.0.210.0040.01115.33
7.0.200.0120.00715.95
7.0.190.0090.00315.49
7.0.180.0060.00615.46
7.0.170.0040.01115.57
7.0.160.0000.00915.50
7.0.150.0040.01115.42
7.0.140.0050.03818.86
7.0.130.0030.01315.64
7.0.120.0060.00315.35
7.0.110.0070.00715.51
7.0.100.0050.00515.50
7.0.90.0030.00715.50
7.0.80.0110.00715.29
7.0.70.0000.01915.25
7.0.60.0100.03717.49
7.0.50.0150.03316.64
7.0.40.0030.05216.74
7.0.30.0150.03116.79
7.0.20.0150.04716.81
7.0.10.0050.04816.83
7.0.00.0090.04516.77
5.6.400.0080.00414.13
5.6.390.0070.00414.34
5.6.380.0130.00314.47
5.6.370.0040.01414.40
5.6.360.0060.00614.40
5.6.350.0090.00914.48
5.6.340.0040.01114.80
5.6.330.0090.00614.30
5.6.320.0100.00314.63
5.6.310.0080.00814.43
5.6.300.0030.00914.52
5.6.290.0030.01314.05
5.6.280.0020.04617.60
5.6.270.0080.00414.46
5.6.260.0090.00614.64
5.6.250.0060.01114.61
5.6.240.0060.00914.33
5.6.230.0040.01114.21
5.6.220.0060.00614.57
5.6.210.0030.04517.45
5.6.200.0020.04216.32
5.6.190.0090.02617.42
5.6.180.0250.02217.56
5.6.170.0150.03717.47
5.6.160.0070.04717.41
5.6.150.0020.03116.37
5.6.140.0120.04516.38
5.6.130.0090.03916.32
5.6.120.0050.02617.83
5.6.110.0110.04217.60
5.6.100.0110.03117.80
5.6.90.0070.03017.68
5.6.80.0070.02817.51
5.6.70.0030.00914.35
5.6.60.0000.01414.38
5.6.50.0080.00514.46
5.6.40.0040.01514.46
5.6.30.0040.01114.42
5.6.20.0070.00714.42
5.6.10.0030.01014.60
5.6.00.0040.01114.36
5.5.380.0090.00814.06
5.5.370.0070.00714.50
5.5.360.0080.00814.07
5.5.350.0240.03217.30
5.5.340.0070.02016.05
5.5.330.0100.02717.47
5.5.320.0120.04817.39
5.5.310.0150.02517.34
5.5.300.0090.04316.05
5.5.290.0060.02816.14
5.5.280.0050.04417.64
5.5.270.0050.04417.56
5.5.260.0060.04817.60
5.5.250.0060.02017.32
5.5.240.0090.03817.18
5.5.230.0090.00314.49
5.5.220.0100.00614.20
5.5.210.0090.00614.41
5.5.200.0080.00614.13
5.5.190.0130.00314.14
5.5.180.0120.00313.89
5.5.170.0060.00914.18
5.5.160.0060.00914.47
5.5.150.0130.00314.30
5.5.140.0030.01414.28
5.5.130.0090.00614.39
5.5.120.0000.00914.16
5.5.110.0060.00614.20
5.5.100.0060.00914.34
5.5.90.0040.01114.29
5.5.80.0070.00714.05
5.5.70.0000.01314.41
5.5.60.0070.00714.20
5.5.50.0070.00714.26
5.5.40.0030.01414.46
5.5.30.0100.00313.77
5.5.20.0040.00414.25
5.5.10.0000.01314.18
5.5.00.0060.00613.75
5.4.450.0310.03315.07
5.4.440.0110.03315.21
5.4.430.0100.03115.25
5.4.420.0050.03515.24
5.4.410.0070.03715.35
5.4.400.0080.03114.96
5.4.390.0140.02415.12
5.4.380.0050.03314.94
5.4.370.0030.02515.08
5.4.360.0040.02214.94
5.4.350.0060.02111.53
5.4.340.0070.02111.36
5.4.330.0050.00511.05
5.4.320.0070.02811.84
5.4.310.0070.03011.77
5.4.300.0100.02611.76
5.4.290.0070.02811.79
5.4.280.0070.02511.68
5.4.270.0080.03411.67
5.4.260.0050.03611.79
5.4.250.0070.03211.70
5.4.240.0060.02811.75
5.4.230.0070.02411.74
5.4.220.0090.02711.76
5.4.210.0090.02411.62
5.4.200.0080.04111.78
5.4.190.0060.02111.87
5.4.180.0080.02611.80
5.4.170.0050.05311.70
5.4.160.0080.03111.60
5.4.150.0140.06211.68
5.4.140.0100.04011.73
5.4.130.0050.03111.53
5.4.120.0080.02811.51
5.4.110.0080.02711.54
5.4.100.0060.02911.53
5.4.90.0080.02811.45
5.4.80.0060.03311.44
5.4.70.0130.04711.56
5.4.60.0120.04111.53
5.4.50.0100.02911.72
5.4.40.0180.04511.54
5.4.30.0140.04911.33
5.4.20.0090.05211.51
5.4.10.0080.02511.56
5.4.00.0090.04311.23
5.3.290.0080.01911.76
5.3.280.0090.02811.60
5.3.270.0080.03011.59
5.3.260.0110.02711.71
5.3.250.0110.04411.57
5.3.240.0130.04711.58
5.3.230.0080.03411.69
5.3.220.0110.05311.63
5.3.210.0120.04211.66
5.3.200.0090.03911.67
5.3.190.0070.03911.69
5.3.180.0100.05111.74
5.3.170.0170.03411.78
5.3.160.0080.05211.72
5.3.150.0180.07511.63
5.3.140.0090.04111.68
5.3.130.0100.03811.59
5.3.120.0090.02911.68
5.3.110.0070.03011.72
5.3.100.0090.03011.44
5.3.90.0090.02611.43
5.3.80.0090.03811.39
5.3.70.0070.02211.39
5.3.60.0030.03011.35
5.3.50.0040.02311.33
5.3.40.0050.02411.33
5.3.30.0070.02011.25
5.3.20.0160.05111.06
5.3.10.0070.02111.07
5.3.00.0100.02110.98
5.2.170.0060.0359.23
5.2.160.0060.0539.24
5.2.150.0100.0419.23
5.2.140.0060.0339.22
5.2.130.0100.0319.18
5.2.120.0080.0399.18
5.2.110.0090.0359.19
5.2.100.0070.0459.19
5.2.90.0060.0539.19
5.2.80.0050.0459.19
5.2.70.0090.0439.18
5.2.60.0090.0309.14
5.2.50.0080.0369.11
5.2.40.0070.0319.08
5.2.30.0100.0349.06
5.2.20.0050.0299.05
5.2.10.0070.0348.95
5.2.00.0050.0338.82
5.1.60.0040.0388.10
5.1.50.0070.0358.09
5.1.40.0080.0388.08
5.1.30.0010.0318.43
5.1.20.0070.0338.45
5.1.10.0080.0318.18
5.1.00.0070.0278.17
5.0.50.0050.0286.65
5.0.40.0020.0306.51
5.0.30.0060.0306.32
5.0.20.0050.0186.29
5.0.10.0030.0206.26
5.0.00.0060.0286.25
4.4.90.0020.0194.78
4.4.80.0030.0154.75
4.4.70.0010.0174.75
4.4.60.0060.0124.76
4.4.50.0040.0154.77
4.4.40.0030.0274.71
4.4.30.0040.0174.76
4.4.20.0030.0234.84
4.4.10.0050.0274.85
4.4.00.0020.0364.76
4.3.110.0050.0214.67
4.3.100.0040.0164.66
4.3.90.0040.0204.63
4.3.80.0080.0294.58
4.3.70.0050.0174.63
4.3.60.0020.0164.63
4.3.50.0040.0214.63
4.3.40.0030.0254.54
4.3.30.0050.0203.30
4.3.20.0030.0183.28
4.3.10.0060.0183.24
4.3.00.0130.0178.15

preferences:
44.9 ms | 400 KiB | 5 Q