3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{} class bar extends foo{} class foobar { function startTest() { $bar = new bar(); $this->test($bar); } function test(foo $testObject) { print_r(get_parent_class($testObject)); } } $foobar = new foobar(); $foobar->startTest();

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.0070.00718.43
8.3.50.0070.01021.83
8.3.40.0150.00018.54
8.3.30.0070.00718.98
8.3.20.0070.00020.06
8.3.10.0000.00823.54
8.3.00.0080.00019.69
8.2.180.0120.00618.29
8.2.170.0100.00722.96
8.2.160.0100.00320.34
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0070.00322.15
8.2.100.0040.00718.09
8.2.90.0000.00719.22
8.2.80.0000.00817.97
8.2.70.0040.00417.48
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0050.00218.23
8.2.20.0070.00017.66
8.2.10.0060.00318.04
8.2.00.0040.00417.61
8.1.280.0060.00825.92
8.1.270.0000.00823.82
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00722.19
8.1.230.0060.00619.22
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0000.00917.22
8.1.180.0000.00918.10
8.1.170.0000.00818.59
8.1.160.0040.00421.85
8.1.150.0000.00718.86
8.1.140.0000.00717.38
8.1.130.0070.00017.88
8.1.120.0020.00517.38
8.1.110.0030.00617.32
8.1.100.0070.00017.42
8.1.90.0030.00317.29
8.1.80.0030.00717.27
8.1.70.0070.00017.38
8.1.60.0030.00717.50
8.1.50.0090.00017.53
8.1.40.0030.00617.47
8.1.30.0090.00017.50
8.1.20.0040.00417.49
8.1.10.0000.00717.39
8.1.00.0080.00017.37
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0040.00418.25
8.0.270.0050.00317.08
8.0.260.0060.00017.10
8.0.250.0070.00016.93
8.0.240.0070.00017.00
8.0.230.0000.00716.84
8.0.220.0000.00716.94
8.0.210.0070.00016.92
8.0.200.0030.00316.89
8.0.190.0070.00016.93
8.0.180.0030.00616.82
8.0.170.0030.00616.81
8.0.160.0040.00416.76
8.0.150.0000.00716.86
8.0.140.0040.00416.80
8.0.130.0000.00513.34
8.0.120.0050.00316.74
8.0.110.0050.00316.77
8.0.100.0050.00316.83
8.0.90.0080.00016.89
8.0.80.0100.00616.89
8.0.70.0050.00216.91
8.0.60.0000.00716.83
8.0.50.0040.00416.82
8.0.30.0140.00517.02
8.0.20.0090.00917.40
8.0.10.0070.00016.96
8.0.00.0100.00916.77
7.4.330.0000.00515.00
7.4.320.0030.00316.54
7.4.300.0000.00716.59
7.4.290.0000.00716.48
7.4.280.0080.00016.59
7.4.270.0030.00316.51
7.4.260.0040.00716.41
7.4.250.0040.00416.45
7.4.240.0040.00316.54
7.4.230.0000.00716.54
7.4.220.0090.00916.38
7.4.210.0060.01216.56
7.4.200.0000.00816.30
7.4.160.0130.01016.48
7.4.150.0160.00317.40
7.4.140.0110.00717.86
7.4.130.0050.01116.60
7.4.120.0090.00816.41
7.4.110.0090.00616.38
7.4.100.0150.00316.58
7.4.90.0100.00716.35
7.4.80.0030.01419.39
7.4.70.0030.01316.47
7.4.60.0120.00616.23
7.4.50.0090.00016.59
7.4.40.0070.01016.38
7.4.30.0030.01316.34
7.4.00.0030.01414.81
7.3.330.0060.00013.25
7.3.320.0030.00313.00
7.3.310.0000.00616.13
7.3.300.0030.00316.11
7.3.290.0100.00316.23
7.3.280.0050.00916.17
7.3.270.0110.00717.40
7.3.260.0060.01216.63
7.3.250.0140.00516.30
7.3.240.0100.01016.29
7.3.230.0110.00716.39
7.3.210.0110.00616.20
7.3.200.0130.00319.39
7.3.190.0080.00816.14
7.3.180.0100.00716.17
7.3.170.0130.00316.27
7.3.160.0090.00616.31
7.3.120.0120.00314.91
7.2.330.0140.00416.73
7.2.320.0070.01116.50
7.2.310.0000.01616.45
7.2.300.0080.00816.60
7.2.290.0090.00616.39
7.2.00.0110.00719.21
7.1.100.0040.00717.94
7.1.70.0020.00516.86
7.1.60.0120.01219.70
7.1.50.0160.00916.94
7.1.00.0100.07022.48
7.0.200.0060.00816.66
7.0.140.0070.07022.02
7.0.60.0030.04019.79
7.0.50.0070.04317.86
7.0.40.0100.06020.17
7.0.30.0300.07320.09
7.0.20.0130.04720.16
7.0.10.0270.08320.20
7.0.00.0030.04720.29
5.6.280.0000.09021.00
5.6.210.0230.07020.72
5.6.200.0130.07318.30
5.6.190.0070.08720.60
5.6.180.0030.04720.49
5.6.170.0300.05320.53
5.6.160.0070.07020.45
5.6.150.0030.04318.21
5.6.140.0030.04018.13
5.6.130.0070.08318.13
5.6.120.0100.07721.13
5.6.110.0100.06721.11
5.6.100.0100.08020.98
5.6.90.0070.07020.98
5.6.80.0100.08020.43
5.6.70.4170.03720.42
5.5.350.0000.03320.30
5.5.340.0030.04318.05
5.5.330.0030.06020.40
5.5.320.0170.04020.28
5.5.310.0270.04720.37
5.5.300.0030.05017.98
5.5.290.0100.08017.96
5.5.280.0070.08320.91
5.5.270.0030.05320.89
5.5.260.0130.03720.80
5.5.250.0130.07020.47
5.5.240.0030.07720.13
5.4.450.0400.05019.13
5.4.440.0330.03719.41
5.4.430.0430.04719.51
5.4.420.0300.03019.45
5.4.410.0400.04319.29
5.4.400.0530.02744.39
5.4.390.0370.04743.92
5.4.380.0170.05018.54
5.4.370.0100.05318.64
5.4.360.0030.06018.57
5.4.350.0530.04718.48
5.4.340.0200.05018.73
5.4.320.0020.03912.50
5.4.310.0060.04412.50
5.4.300.0100.03312.50
5.4.290.0060.03812.50
5.4.280.0050.04212.40
5.4.270.0060.04112.40
5.4.260.0040.03912.40
5.4.250.0080.04112.40
5.4.240.0060.03512.40
5.4.230.0060.04312.39
5.4.220.0090.03712.39
5.4.210.0110.03412.39
5.4.200.0060.03712.39
5.4.190.0040.03612.39
5.4.180.0100.04012.39
5.4.170.0050.03612.40
5.4.160.0090.03212.39
5.4.150.0050.03712.39
5.4.140.0020.04112.07
5.4.130.0100.03412.06
5.4.120.0030.03712.02
5.4.110.0050.03512.02
5.4.100.0060.03412.02
5.4.90.0070.03412.02
5.4.80.0050.03712.01
5.4.70.0070.03912.02
5.4.60.0080.04012.01
5.4.50.0040.03612.02
5.4.40.0040.03612.00
5.4.30.0100.03612.00
5.4.20.0060.03912.00
5.4.10.0090.03112.00
5.4.00.0060.03511.49
5.3.290.0060.04312.80
5.3.280.0090.03412.71
5.3.270.0060.03812.73
5.3.260.0060.03912.72
5.3.250.0050.03812.71
5.3.240.0050.03712.72
5.3.230.0100.03812.71
5.3.220.0080.03712.68
5.3.210.0070.03812.68
5.3.200.0080.03412.68
5.3.190.0080.03512.68
5.3.180.0050.03612.67
5.3.170.0070.03512.67
5.3.160.0090.03312.68
5.3.150.0050.03812.67
5.3.140.0110.03012.66
5.3.130.0050.03912.66
5.3.120.0050.03912.66
5.3.110.0060.03812.66
5.3.100.0060.04212.13
5.3.90.0080.03812.11
5.3.80.0050.03712.10
5.3.70.0080.03312.10
5.3.60.0050.03612.09
5.3.50.0050.03612.03
5.3.40.0120.02912.03
5.3.30.0050.03611.98
5.3.20.0060.03411.77
5.3.10.0080.03311.73
5.3.00.0060.03611.73
5.2.170.0050.0309.22
5.2.160.0040.0299.23
5.2.150.0030.0329.23
5.2.140.0050.0359.22
5.2.130.0060.0269.18
5.2.120.0060.0369.18
5.2.110.0050.0299.19
5.2.100.0050.0289.18
5.2.90.0040.0289.18
5.2.80.0020.0329.18
5.2.70.0060.0289.18
5.2.60.0060.0299.14
5.2.50.0070.0289.10
5.2.40.0080.0259.08
5.2.30.0020.0339.05
5.2.20.0090.0269.04
5.2.10.0030.0298.95
5.2.00.0090.0268.81
5.1.60.0050.0268.10
5.1.50.0050.0248.09
5.1.40.0060.0238.07
5.1.30.0030.0378.42
5.1.20.0060.0258.44
5.1.10.0030.0268.17
5.1.00.0080.0288.17
5.0.50.0030.0256.64
5.0.40.0010.0226.51
5.0.30.0040.0316.32
5.0.20.0050.0186.28
5.0.10.0040.0196.26
5.0.00.0000.0346.26
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0040.0164.75
4.4.60.0030.0154.76
4.4.50.0040.0144.77
4.4.40.0050.0234.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0020.0204.85
4.4.00.0040.0314.76
4.3.110.0030.0194.67
4.3.100.0050.0134.66
4.3.90.0050.0134.63
4.3.80.0040.0234.59
4.3.70.0020.0154.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0010.0264.54
4.3.30.0020.0163.31
4.3.20.0010.0183.29
4.3.10.0040.0193.24
4.3.00.0000.02010.27

preferences:
36.3 ms | 401 KiB | 5 Q