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(foobar $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.55
8.3.50.0110.00621.92
8.3.40.0120.00318.68
8.3.30.0110.00419.01
8.3.20.0040.00420.04
8.3.10.0070.00023.65
8.3.00.0050.00319.69
8.2.180.0140.00718.41
8.2.170.0140.00422.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.01
8.2.110.0030.00622.24
8.2.100.0040.00718.09
8.2.90.0000.00819.09
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0060.00318.07
8.2.40.0050.00319.82
8.2.30.0000.00918.19
8.2.20.0040.00417.55
8.2.10.0040.00418.04
8.2.00.0000.00817.72
8.1.280.0100.00725.92
8.1.270.0030.00623.96
8.1.260.0070.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.73
8.1.230.0040.00819.02
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0040.00417.13
8.1.180.0050.00318.10
8.1.170.0050.00318.50
8.1.160.0030.00521.96
8.1.150.0020.00518.94
8.1.140.0040.00417.41
8.1.130.0000.00817.83
8.1.120.0070.00017.42
8.1.110.0030.00317.27
8.1.100.0040.00417.38
8.1.90.0030.00417.41
8.1.80.0030.00917.28
8.1.70.0000.00717.25
8.1.60.0070.00317.55
8.1.50.0030.00517.42
8.1.40.0000.00817.48
8.1.30.0040.00417.53
8.1.20.0060.00317.56
8.1.10.0040.00417.56
8.1.00.0080.00017.38
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.41
8.0.270.0000.00717.11
8.0.260.0060.00017.11
8.0.250.0040.00416.93
8.0.240.0030.00316.91
8.0.230.0030.00316.82
8.0.220.0000.00816.77
8.0.210.0050.00216.88
8.0.200.0030.00316.84
8.0.190.0000.00816.95
8.0.180.0000.00916.88
8.0.170.0080.00016.87
8.0.160.0070.00016.85
8.0.150.0040.00416.81
8.0.140.0070.00016.83
8.0.130.0000.00513.36
8.0.120.0040.00416.88
8.0.110.0030.00516.82
8.0.100.0040.00416.73
8.0.90.0070.00016.91
8.0.80.0040.01316.85
8.0.70.0030.00516.89
8.0.60.0000.00716.95
8.0.50.0000.00716.84
8.0.30.0120.01217.13
8.0.20.0140.00817.40
8.0.10.0040.00416.85
8.0.00.0130.00416.70
7.4.330.0020.00215.00
7.4.320.0000.00716.46
7.4.300.0030.00316.64
7.4.290.0000.00716.43
7.4.280.0000.00716.57
7.4.270.0030.00516.59
7.4.260.0030.00416.61
7.4.250.0040.00416.55
7.4.240.0060.00116.60
7.4.230.0080.00016.41
7.4.220.0130.00616.56
7.4.210.0120.00616.61
7.4.200.0040.00416.68
7.4.160.0080.01516.36
7.4.150.0110.01017.40
7.4.140.0100.01017.86
7.4.130.0130.00616.43
7.4.120.0080.00916.62
7.4.110.0100.00616.29
7.4.100.0030.01616.66
7.4.90.0100.01316.52
7.4.80.0120.00919.39
7.4.70.0060.00916.35
7.4.60.0160.00016.62
7.4.50.0000.00816.55
7.4.40.0100.00716.33
7.4.30.0100.00716.40
7.4.00.0050.01115.07
7.3.330.0060.00013.37
7.3.320.0000.00513.38
7.3.310.0040.00416.39
7.3.300.0000.00716.37
7.3.290.0100.00716.36
7.3.280.0090.01016.35
7.3.270.0090.00917.40
7.3.260.0170.03416.21
7.3.250.0100.01316.50
7.3.240.0030.01416.57
7.3.230.0060.01216.55
7.3.210.0100.01316.28
7.3.200.0050.01019.39
7.3.190.0110.00416.34
7.3.180.0140.00316.47
7.3.170.0000.01516.40
7.3.160.0060.01016.33
7.3.120.0080.00714.88
7.3.110.0130.00514.73
7.3.100.0080.00314.91
7.3.90.0040.00914.75
7.3.80.0040.01014.72
7.3.70.0050.00914.51
7.3.60.0070.00814.72
7.3.50.0030.00714.82
7.3.40.0080.00314.66
7.3.30.0060.00614.71
7.3.20.0050.01016.68
7.3.10.0070.00516.59
7.3.00.0070.00716.55
7.2.330.0110.00716.52
7.2.320.0150.01216.55
7.2.310.0130.00316.63
7.2.300.0180.02416.53
7.2.290.0060.00916.56
7.2.250.0070.01114.93
7.2.240.0030.01514.92
7.2.230.0080.00714.98
7.2.220.0080.01014.98
7.2.210.0110.00714.96
7.2.200.0050.01015.00
7.2.190.0050.00814.88
7.2.180.0050.00814.81
7.2.170.0080.00614.91
7.2.60.0120.00416.55
7.2.00.0110.00419.23
7.1.330.0080.00715.47
7.1.320.0030.01215.58
7.1.310.0070.00815.65
7.1.300.0100.00415.60
7.1.290.0000.01315.86
7.1.280.0050.00915.58
7.1.270.0040.00915.52
7.1.260.0050.00715.53
7.1.200.0000.01115.45
7.1.100.0090.00318.29
7.1.70.0040.00417.12
7.1.60.0030.01719.70
7.1.50.0170.00716.98
7.1.00.0030.07722.45
7.0.200.0080.00816.85
7.0.140.0000.07721.92
7.0.60.0100.07020.01
7.0.50.0100.06317.95
7.0.40.0130.07720.11
7.0.30.0300.06720.30
7.0.20.0300.08020.24
7.0.10.0200.07320.30
7.0.00.0170.06720.06
5.6.280.0000.07721.11
5.6.210.0130.08020.52
5.6.200.0070.05718.29
5.6.190.0130.04020.39
5.6.180.0330.04320.61
5.6.170.0200.05020.47
5.6.160.0000.08320.51
5.6.150.0100.08018.18
5.6.140.0000.07318.15
5.6.130.0170.06318.15
5.6.120.0070.04020.96
5.6.110.0070.08321.08
5.6.100.0100.07721.14
5.6.90.0100.08020.88
5.6.80.0100.07020.53
5.5.350.0170.03320.41
5.5.340.0130.07318.04
5.5.330.0000.08720.57
5.5.320.0430.07020.27
5.5.310.0170.07720.30
5.5.300.0070.04318.03
5.5.290.0070.03717.99
5.5.280.0070.08320.96
5.5.270.0030.06720.68
5.5.260.0000.06720.88
5.5.250.0070.08320.50
5.5.240.0030.05720.36
5.4.450.0270.04319.55
5.4.440.0370.04719.30
5.4.430.0330.04319.27
5.4.420.0270.03719.45
5.4.410.0230.04719.14
5.4.400.0300.04018.81
5.4.390.0130.05018.97
5.4.380.0100.05718.61
5.4.370.0130.05718.68
5.4.360.0100.06018.62
5.4.350.0130.05318.74
5.4.340.0170.07318.52
5.4.320.0080.03712.51
5.4.310.0090.04212.50
5.4.300.0090.03312.50
5.4.290.0060.03812.50
5.4.280.0080.03912.39
5.4.270.0070.03612.40
5.4.260.0060.04912.40
5.4.250.0080.03512.40
5.4.240.0090.03512.40
5.4.230.0050.04212.39
5.4.220.0030.03812.39
5.4.210.0070.03912.39
5.4.200.0050.03712.39
5.4.190.0090.03812.39
5.4.180.0070.04212.39
5.4.170.0070.04212.40
5.4.160.0040.03712.39
5.4.150.0070.03512.39
5.4.140.0060.03612.07
5.4.130.0080.03612.06
5.4.120.0040.03612.02
5.4.110.0040.03512.02
5.4.100.0090.03112.02
5.4.90.0080.04112.01
5.4.80.0040.04112.02
5.4.70.0040.03512.01
5.4.60.0070.03612.02
5.4.50.0080.03712.01
5.4.40.0040.03812.00
5.4.30.0060.04112.00
5.4.20.0050.03512.00
5.4.10.0050.03712.00
5.4.00.0100.03511.49
5.3.290.0080.03612.80
5.3.280.0040.04012.71
5.3.270.0100.03912.73
5.3.260.0070.03812.72
5.3.250.0070.03612.72
5.3.240.0080.03412.72
5.3.230.0060.03712.71
5.3.220.0020.04012.68
5.3.210.0050.03912.68
5.3.200.0020.04112.68
5.3.190.0060.03812.68
5.3.180.0070.03612.67
5.3.170.0110.03112.67
5.3.160.0070.03612.67
5.3.150.0020.04312.68
5.3.140.0060.03812.66
5.3.130.0070.04612.66
5.3.120.0080.05312.65
5.3.110.0070.04612.65
5.3.100.0070.04112.13
5.3.90.0080.04512.12
5.3.80.0100.04112.10
5.3.70.0060.04612.10
5.3.60.0120.04912.09
5.3.50.0080.04412.04
5.3.40.0130.05912.03
5.3.30.0070.05011.99
5.3.20.0060.04211.77
5.3.10.0070.04611.74
5.3.00.0070.03711.73
5.2.170.0080.0289.23
5.2.160.0070.0349.23
5.2.150.0040.0319.23
5.2.140.0080.0299.23
5.2.130.0060.0339.18
5.2.120.0030.0399.19
5.2.110.0060.0299.19
5.2.100.0070.0329.19
5.2.90.0060.0349.19
5.2.80.0040.0359.18
5.2.70.0100.0299.18
5.2.60.0090.0369.14
5.2.50.0060.0319.11
5.2.40.0110.0369.09
5.2.30.0060.0339.05
5.2.20.0030.0359.04
5.2.10.0170.0458.95
5.2.00.0050.0348.81
5.1.60.0070.0388.10
5.1.50.0030.0308.10
5.1.40.0190.0858.07
5.1.30.0080.0278.43
5.1.20.0050.0348.45
5.1.10.0070.0348.18
5.1.00.0110.0368.17
5.0.50.0070.0266.65
5.0.40.0030.0256.51
5.0.30.0030.0346.32
5.0.20.0050.0216.29
5.0.10.0050.0206.27
5.0.00.0030.0326.26
4.4.90.0060.0144.78
4.4.80.0050.0164.75
4.4.70.0130.0544.75
4.4.60.0150.0444.75
4.4.50.0020.0214.77
4.4.40.0040.0254.71
4.4.30.0040.0204.76
4.4.20.0080.0454.84
4.4.10.0030.0154.85
4.4.00.0030.0294.76
4.3.110.0060.0194.67
4.3.100.0070.0184.66
4.3.90.0050.0224.64
4.3.80.0100.0314.58
4.3.70.0030.0214.63
4.3.60.0060.0164.62
4.3.50.0070.0224.63
4.3.40.0040.0304.54
4.3.30.0020.0293.31
4.3.20.0020.0223.29
4.3.10.0040.0323.24
4.3.00.0070.01010.34

preferences:
43.19 ms | 401 KiB | 5 Q