3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{} class bar extends foo{} class foobar { public function startTest() { $bar = new bar(); $this->test($bar); } public function test(foo $testObject) { print_r(get_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.31
8.3.50.0160.00221.89
8.3.40.0120.00618.68
8.3.30.0080.00618.96
8.3.20.0070.00020.18
8.3.10.0070.00023.78
8.3.00.0030.00519.66
8.2.180.0100.01016.63
8.2.170.0110.00422.96
8.2.160.0030.01020.38
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.96
8.2.110.0000.00922.14
8.2.100.0040.00818.22
8.2.90.0060.00319.02
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0040.00419.95
8.2.30.0070.00018.05
8.2.20.0020.00517.58
8.2.10.0040.00417.86
8.2.00.0000.00817.54
8.1.280.0070.00725.92
8.1.270.0000.00923.72
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00323.96
8.1.230.0070.00419.09
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0050.00317.00
8.1.180.0030.00618.10
8.1.170.0030.00618.52
8.1.160.0000.00821.97
8.1.150.0040.00418.67
8.1.140.0000.00717.29
8.1.130.0030.00317.72
8.1.120.0070.00017.41
8.1.110.0040.00417.28
8.1.100.0000.00817.44
8.1.90.0070.00017.25
8.1.80.0000.01017.27
8.1.70.0000.00717.38
8.1.60.0030.00817.47
8.1.50.0000.00817.57
8.1.40.0040.00417.52
8.1.30.0030.00617.57
8.1.20.0000.00817.55
8.1.10.0050.00317.55
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.27
8.0.270.0000.00917.20
8.0.260.0030.00517.10
8.0.250.0000.00716.82
8.0.240.0080.00016.91
8.0.230.0070.00016.94
8.0.220.0030.00316.81
8.0.210.0050.00216.91
8.0.200.0030.00316.89
8.0.190.0040.00416.84
8.0.180.0000.00916.89
8.0.170.0000.00816.80
8.0.160.0000.00716.88
8.0.150.0020.00516.87
8.0.140.0030.00516.72
8.0.130.0000.00513.24
8.0.120.0060.00316.83
8.0.110.0040.00416.89
8.0.100.0000.00716.82
8.0.90.0000.00816.79
8.0.80.0060.00916.76
8.0.70.0050.00316.77
8.0.60.0040.00416.71
8.0.50.0000.00716.84
8.0.30.0130.01417.05
8.0.20.0120.00917.40
8.0.10.0040.00416.93
8.0.00.0090.00816.79
7.4.330.0030.00315.01
7.4.320.0060.00016.57
7.4.300.0060.00016.57
7.4.290.0000.00716.49
7.4.280.0000.00716.48
7.4.270.0000.00716.35
7.4.260.0050.00516.61
7.4.250.0000.00716.54
7.4.240.0040.00416.43
7.4.230.0040.00416.59
7.4.220.0090.00916.57
7.4.210.0090.00616.62
7.4.200.0030.00316.41
7.4.160.0090.00916.32
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0110.00516.46
7.4.120.0110.01016.48
7.4.110.0030.01316.41
7.4.100.0090.00716.51
7.4.90.0150.00316.20
7.4.80.0110.00619.39
7.4.70.0040.01616.45
7.4.60.0160.00016.34
7.4.50.0040.00416.38
7.4.40.0060.01216.50
7.4.30.0100.00616.45
7.4.00.0070.00714.71
7.3.330.0060.00013.16
7.3.320.0050.00013.36
7.3.310.0030.00316.30
7.3.300.0050.00216.30
7.3.290.0030.01016.26
7.3.280.0070.00916.29
7.3.270.0160.00717.40
7.3.260.0140.00416.25
7.3.250.0110.00816.30
7.3.240.0030.01616.36
7.3.230.0040.01616.39
7.3.210.0110.00616.30
7.3.200.0080.00819.39
7.3.190.0110.00716.30
7.3.180.0030.01316.36
7.3.170.0160.00316.27
7.3.160.0110.00516.43
7.3.120.0030.01314.54
7.3.110.0070.00714.75
7.3.100.0090.00614.90
7.3.90.0030.00914.51
7.3.80.0090.00614.54
7.3.70.0060.00614.83
7.3.60.0070.01014.86
7.3.50.0090.00614.46
7.3.40.0030.01014.86
7.3.30.0000.01114.96
7.3.20.0060.01016.54
7.3.10.0080.00716.48
7.3.00.0050.01116.62
7.2.330.0120.00616.29
7.2.320.0070.01216.36
7.2.310.0030.01316.32
7.2.300.0100.00616.41
7.2.290.0090.01316.45
7.2.250.0000.01515.00
7.2.240.0030.01715.20
7.2.230.0090.00915.06
7.2.220.0030.01014.82
7.2.210.0000.01415.20
7.2.200.0030.01215.01
7.2.190.0030.01014.90
7.2.180.0090.00615.11
7.2.170.0000.01014.99
7.2.130.0110.00016.80
7.2.120.0040.00916.87
7.2.110.0070.00316.97
7.2.100.0090.00316.67
7.2.90.0060.00616.68
7.2.80.0050.00516.82
7.2.70.0000.00816.93
7.2.60.0060.00816.88
7.2.50.0120.00316.72
7.2.40.0030.01216.94
7.2.30.0000.01016.55
7.2.20.0030.00616.99
7.2.10.0040.00816.84
7.2.00.0090.00818.07
7.1.330.0120.00415.61
7.1.320.0060.00615.48
7.1.310.0040.01115.57
7.1.300.0030.00715.71
7.1.290.0070.00715.59
7.1.280.0100.00315.78
7.1.270.0100.00715.68
7.1.260.0060.01315.57
7.1.250.0060.00715.77
7.1.200.0040.00715.86
7.1.100.0040.00818.09
7.1.70.0070.00717.18
7.1.60.0070.01819.70
7.1.50.0030.01716.93
7.1.00.0070.07022.43
7.0.200.0060.00616.75
7.0.140.0030.07722.12
7.0.60.0070.04019.81
7.0.50.0070.05317.88
7.0.40.0130.04720.13
7.0.30.0200.03720.16
7.0.20.0230.08320.30
7.0.10.0270.04020.19
7.0.00.0030.08720.22
5.6.280.0000.07721.08
5.6.210.0070.08020.51
5.6.200.0000.04318.19
5.6.190.0070.05320.59
5.6.180.0300.08020.62
5.6.170.0200.04020.55
5.6.160.0000.04320.44
5.6.150.0070.08318.15
5.6.140.0100.07318.21
5.6.130.0000.04318.18
5.6.120.0100.08321.02
5.6.110.0070.07321.12
5.6.100.0100.08020.96
5.6.90.0070.06721.02
5.6.80.0000.04320.41
5.6.70.0300.07320.53
5.5.350.0070.04020.41
5.5.340.0330.03018.02
5.5.330.0100.05020.30
5.5.320.0200.04320.38
5.5.310.0330.04320.32
5.5.300.0200.07017.98
5.5.290.0030.04317.97
5.5.280.0130.08020.78
5.5.270.0130.04020.84
5.5.260.0070.07020.98
5.5.250.0100.07720.69
5.5.240.0130.06720.13
5.4.450.0730.06719.20
5.4.440.0370.06019.47
5.4.430.0870.06319.47
5.4.420.0670.00019.62
5.4.410.0230.04018.81
5.4.400.0500.06718.79
5.4.390.0330.07018.80
5.4.380.0130.06018.57
5.4.370.0130.05018.52
5.4.360.0030.05718.84
5.4.350.0070.03712.02
5.4.340.0110.03512.02
5.4.320.0120.03112.51
5.4.310.0060.05012.50
5.4.300.0060.03612.51
5.4.290.0070.03712.50
5.4.280.0050.03712.40
5.4.270.0060.03612.40
5.4.260.0040.04012.39
5.4.250.0030.04012.40
5.4.240.0050.03712.40
5.4.230.0050.03712.39
5.4.220.0090.03812.39
5.4.210.0060.03412.39
5.4.200.0040.04612.39
5.4.190.0030.03912.39
5.4.180.0090.03812.39
5.4.170.0060.03612.39
5.4.160.0070.04112.40
5.4.150.0070.04212.39
5.4.140.0090.03412.07
5.4.130.0050.03612.07
5.4.120.0020.03912.02
5.4.110.0040.03912.02
5.4.100.0070.03312.01
5.4.90.0060.03712.02
5.4.80.0070.03612.01
5.4.70.0050.03512.02
5.4.60.0050.03412.01
5.4.50.0060.03412.01
5.4.40.0060.04112.00
5.4.30.0040.04012.00
5.4.20.0050.03912.00
5.4.10.0060.03311.99
5.4.00.0040.03711.49
5.3.290.0030.04312.80
5.3.280.0040.04012.70
5.3.270.0120.03712.73
5.3.260.0060.03812.72
5.3.250.0070.03812.72
5.3.240.0070.03812.71
5.3.230.0060.03812.71
5.3.220.0070.03912.68
5.3.210.0060.04212.68
5.3.200.0080.03412.68
5.3.190.0060.03912.68
5.3.180.0080.03512.68
5.3.170.0080.03912.67
5.3.160.0070.04512.67
5.3.150.0060.03612.67
5.3.140.0120.03912.66
5.3.130.0080.03612.66
5.3.120.0060.03912.66
5.3.110.0050.04412.66
5.3.100.0070.04512.12
5.3.90.0050.03712.11
5.3.80.0060.03812.10
5.3.70.0150.02912.10
5.3.60.0070.03612.09
5.3.50.0040.03812.03
5.3.40.0040.03812.03
5.3.30.0050.03611.98
5.3.20.0080.03311.77
5.3.10.0070.03411.74
5.3.00.0040.03811.72
5.2.170.0050.0309.23
5.2.160.0020.0339.23
5.2.150.0050.0309.23
5.2.140.0050.0299.22
5.2.130.0060.0269.18
5.2.120.0000.0389.18
5.2.110.0080.0319.19
5.2.100.0020.0309.18
5.2.90.0040.0299.18
5.2.80.0050.0299.18
5.2.70.0060.0289.18
5.2.60.0060.0289.14
5.2.50.0050.0299.10
5.2.40.0040.0289.08
5.2.30.0020.0369.05
5.2.20.0040.0289.04
5.2.10.0050.0288.95
5.2.00.0060.0298.81
5.1.60.0060.0228.10
5.1.50.0030.0258.09
5.1.40.0020.0268.07
5.1.30.0020.0278.42
5.1.20.0020.0288.44
5.1.10.0050.0258.17
5.1.00.0030.0298.17
5.0.50.0050.0196.64
5.0.40.0030.0196.50
5.0.30.0030.0316.32
5.0.20.0030.0206.28
5.0.10.0050.0186.26
5.0.00.0020.0366.25
4.4.90.0010.0164.78
4.4.80.0030.0204.75
4.4.70.0030.0144.75
4.4.60.0030.0144.76
4.4.50.0010.0204.77
4.4.40.0020.0304.71
4.4.30.0020.0194.76
4.4.20.0040.0184.84
4.4.10.0030.0164.85
4.4.00.0020.0254.75
4.3.110.0020.0164.67
4.3.100.0040.0164.66
4.3.90.0040.0164.64
4.3.80.0030.0234.58
4.3.70.0040.0214.63
4.3.60.0020.0194.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0010.0173.30
4.3.20.0000.0173.28
4.3.10.0010.0163.24
4.3.00.0070.0236.65

preferences:
42.94 ms | 401 KiB | 5 Q