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.0100.00718.17
8.3.50.0100.00821.92
8.3.40.0090.00618.46
8.3.30.0070.00719.02
8.3.20.0040.00420.04
8.3.10.0080.00023.66
8.3.00.0000.00819.66
8.2.180.0090.00616.50
8.2.170.0120.00422.96
8.2.160.0100.00320.43
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0050.00226.16
8.2.120.0040.00421.02
8.2.110.0060.00322.07
8.2.100.0070.00417.95
8.2.90.0080.00019.16
8.2.80.0030.00517.97
8.2.70.0050.00317.59
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00417.92
8.2.30.0050.00218.07
8.2.20.0000.00717.59
8.2.10.0040.00417.96
8.2.00.0040.00417.60
8.1.280.0150.00425.92
8.1.270.0040.00423.97
8.1.260.0070.00726.35
8.1.250.0030.00628.09
8.1.240.0060.00323.79
8.1.230.0000.01118.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00818.50
8.1.160.0000.00721.90
8.1.150.0050.00218.83
8.1.140.0040.00417.29
8.1.130.0000.00717.68
8.1.120.0030.00317.34
8.1.110.0000.00817.38
8.1.100.0040.00417.30
8.1.90.0040.00417.43
8.1.80.0070.00417.41
8.1.70.0030.00317.26
8.1.60.0070.00717.54
8.1.50.0040.00417.52
8.1.40.0050.00217.39
8.1.30.0040.00417.69
8.1.20.0040.00417.54
8.1.10.0000.00817.60
8.1.00.0050.00317.54
8.0.300.0050.00218.77
8.0.290.0070.00016.63
8.0.280.0030.00318.33
8.0.270.0000.00717.10
8.0.260.0030.00317.18
8.0.250.0000.00716.93
8.0.240.0040.00416.96
8.0.230.0030.00316.80
8.0.220.0000.00616.84
8.0.210.0040.00416.77
8.0.200.0040.00416.93
8.0.190.0000.00816.87
8.0.180.0030.00616.96
8.0.170.0040.00416.95
8.0.160.0050.00216.84
8.0.150.0000.00716.78
8.0.140.0050.00216.80
8.0.130.0000.00613.31
8.0.120.0040.00416.94
8.0.110.0050.00316.72
8.0.100.0050.00316.87
8.0.90.0040.00416.82
8.0.80.0090.00916.92
8.0.70.0000.00716.74
8.0.60.0050.00216.77
8.0.50.0040.00416.94
8.0.30.0060.01517.22
8.0.20.0110.00817.40
8.0.10.0080.00017.06
8.0.00.0070.01216.69
7.4.330.0030.00315.02
7.4.320.0070.00016.42
7.4.300.0030.00316.49
7.4.290.0000.00716.63
7.4.280.0060.00316.43
7.4.270.0030.00316.42
7.4.260.0000.00816.48
7.4.250.0000.00816.55
7.4.240.0020.00516.54
7.4.230.0050.00216.59
7.4.220.0140.00316.60
7.4.210.0080.00516.59
7.4.200.0040.00416.44
7.4.160.0130.00316.26
7.4.150.0120.00817.40
7.4.140.0090.00917.86
7.4.130.0120.00516.52
7.4.120.0110.00716.46
7.4.110.0070.01016.63
7.4.100.0040.01416.39
7.4.90.0100.00716.53
7.4.80.0140.00719.39
7.4.70.0100.00716.45
7.4.60.0100.01016.51
7.4.50.0000.00416.52
7.4.40.0040.01616.57
7.4.30.0060.01216.53
7.4.00.0070.01014.89
7.3.330.0030.00313.31
7.3.320.0060.00013.27
7.3.310.0000.00616.14
7.3.300.0040.00416.34
7.3.290.0100.00316.31
7.3.280.0070.00916.31
7.3.270.0140.00417.40
7.3.260.0120.00616.31
7.3.250.0080.01216.31
7.3.240.0070.01116.30
7.3.230.0060.01016.39
7.3.210.0100.01016.25
7.3.200.0120.00419.39
7.3.190.0030.01316.41
7.3.180.0030.01216.20
7.3.170.0030.01616.28
7.3.160.0120.00316.24
7.3.120.0030.01014.45
7.2.330.0030.01516.51
7.2.320.0130.00416.55
7.2.310.0080.00916.37
7.2.300.0000.01516.43
7.2.290.0070.01416.45
7.2.60.0110.00716.62
7.2.00.0150.00619.35
7.1.200.0060.00915.51
7.1.100.0080.00317.97
7.1.70.0040.01117.23
7.1.60.0170.00719.70
7.1.50.0030.01216.65
7.1.00.0030.07722.57
7.0.200.0030.00716.75
7.0.140.0030.07322.02
7.0.60.0100.05019.88
7.0.50.0000.04017.88
7.0.40.0000.04720.07
7.0.30.0270.04320.11
7.0.20.0330.08320.07
7.0.10.0170.05020.16
7.0.00.0070.07020.12
5.6.280.0070.07021.09
5.6.210.0070.08020.73
5.6.200.0000.04318.25
5.6.190.0130.06720.58
5.6.180.0030.07320.33
5.6.170.0330.04720.34
5.6.160.0030.07320.57
5.6.150.0130.07318.19
5.6.140.0130.07718.23
5.6.130.0070.06318.21
5.6.120.0130.06321.15
5.6.110.0030.04720.99
5.6.100.0070.08320.99
5.6.90.0030.04320.97
5.6.80.0070.04020.53
5.6.70.4430.04020.51
5.5.350.0030.05720.47
5.5.340.0030.05018.01
5.5.330.0070.04020.43
5.5.320.0430.07720.27
5.5.310.0230.07720.51
5.5.300.0070.03717.94
5.5.290.0030.06718.07
5.5.280.0100.07720.89
5.5.270.0070.08020.76
5.5.260.0170.05720.80
5.5.250.0130.08020.62
5.5.240.0000.07720.19
5.4.450.0330.04719.39
5.4.440.0130.05019.30
5.4.430.0200.03019.47
5.4.420.0530.04719.32
5.4.410.0430.04719.33
5.4.400.0300.03744.53
5.4.390.0200.03743.92
5.4.380.0100.05718.73
5.4.370.0200.04318.68
5.4.360.0070.05718.68
5.4.350.0170.05018.54
5.4.340.0030.06318.76
5.4.320.0070.04012.51
5.4.310.0040.04412.50
5.4.300.0110.04012.51
5.4.290.0080.03712.50
5.4.280.0060.04012.40
5.4.270.0140.03412.40
5.4.260.0130.03712.40
5.4.250.0050.04012.40
5.4.240.0040.04112.40
5.4.230.0070.04112.39
5.4.220.0040.03912.39
5.4.210.0060.03712.39
5.4.200.0040.04312.39
5.4.190.0070.03712.39
5.4.180.0100.03312.39
5.4.170.0130.03012.39
5.4.160.0070.03612.39
5.4.150.0100.03312.39
5.4.140.0090.03412.08
5.4.130.0050.03712.07
5.4.120.0060.03912.02
5.4.110.0040.03712.01
5.4.100.0060.03712.02
5.4.90.0080.03412.02
5.4.80.0080.04012.02
5.4.70.0040.03612.01
5.4.60.0030.03712.01
5.4.50.0080.04012.01
5.4.40.0060.03612.00
5.4.30.0070.03512.00
5.4.20.0020.03712.00
5.4.10.0060.03312.00
5.4.00.0040.03711.48
5.3.290.0070.04012.80
5.3.280.0040.03912.70
5.3.270.0040.04012.72
5.3.260.0090.04412.72
5.3.250.0070.03512.72
5.3.240.0070.03812.72
5.3.230.0050.03812.71
5.3.220.0070.03812.68
5.3.210.0050.03912.68
5.3.200.0080.03412.68
5.3.190.0070.03512.68
5.3.180.0060.03612.67
5.3.170.0080.03612.66
5.3.160.0060.03712.68
5.3.150.0080.03512.67
5.3.140.0080.03512.66
5.3.130.0050.04012.66
5.3.120.0040.04112.66
5.3.110.0060.04012.66
5.3.100.0030.04112.12
5.3.90.0090.03412.11
5.3.80.0100.04012.10
5.3.70.0070.04112.10
5.3.60.0100.03312.08
5.3.50.0060.04212.03
5.3.40.0130.03512.03
5.3.30.0050.04111.98
5.3.20.0080.03911.77
5.3.10.0110.03311.73
5.3.00.0070.03611.73
5.2.170.0050.0349.23
5.2.160.0030.0329.22
5.2.150.0020.0329.22
5.2.140.0010.0349.22
5.2.130.0030.0309.18
5.2.120.0050.0289.18
5.2.110.0060.0289.19
5.2.100.0040.0299.18
5.2.90.0020.0319.18
5.2.80.0050.0329.18
5.2.70.0050.0319.17
5.2.60.0050.0309.14
5.2.50.0060.0339.11
5.2.40.0040.0309.08
5.2.30.0040.0309.05
5.2.20.0040.0309.04
5.2.10.0050.0288.95
5.2.00.0050.0308.81
5.1.60.0090.0208.10
5.1.50.0070.0238.09
5.1.40.0040.0268.07
5.1.30.0030.0278.42
5.1.20.0050.0288.44
5.1.10.0080.0338.17
5.1.00.0070.0278.17
5.0.50.0070.0216.64
5.0.40.0040.0256.51
5.0.30.0060.0326.32
5.0.20.0040.0206.28
5.0.10.0020.0246.27
5.0.00.0060.0306.25
4.4.90.0050.0134.77
4.4.80.0010.0174.76
4.4.70.0060.0124.75
4.4.60.0030.0164.75
4.4.50.0010.0184.77
4.4.40.0050.0244.70
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0030.0244.75
4.3.110.0050.0144.67
4.3.100.0000.0184.66
4.3.90.0030.0144.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0020.0163.30
4.3.20.0030.0153.28
4.3.10.0030.0153.24
4.3.00.0270.01043.92

preferences:
39.09 ms | 401 KiB | 5 Q