3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar { public function test(Foo $foo) { var_dump($foo); } } class Baz extends Bar { public function test($foo) { var_dump($foo); } } $f = new Foo(); $z = new Baz(); $z->test($f); $z->test(true);

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.70.0130.00318.18
8.3.60.0070.01018.31
8.3.50.0140.01021.27
8.3.40.0000.01418.73
8.3.30.0070.00720.11
8.3.20.0060.00320.21
8.3.10.0080.00021.92
8.3.00.0070.00022.43
8.2.190.0090.00916.63
8.2.180.0120.00316.59
8.2.170.0110.00422.96
8.2.160.0100.00320.38
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0050.00520.96
8.2.100.0040.00817.91
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0040.00417.38
8.2.60.0060.00317.50
8.2.50.0040.00417.63
8.2.40.0050.00318.08
8.2.30.0000.00817.86
8.2.20.0040.00417.61
8.2.10.0080.00017.61
8.2.00.0040.00417.61
8.1.280.0170.00725.92
8.1.270.0030.01223.78
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00320.95
8.1.230.0110.00017.77
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.23
8.1.190.0110.00017.00
8.1.180.0090.00018.10
8.1.170.0090.00218.42
8.1.160.0000.00722.14
8.1.150.0000.00718.50
8.1.140.0000.00717.38
8.1.130.0030.00317.77
8.1.120.0020.00517.40
8.1.110.0080.00017.42
8.1.100.0000.00817.37
8.1.90.0070.00017.29
8.1.80.0030.00317.38
8.1.70.0030.00317.39
8.1.60.0040.00417.49
8.1.50.0000.00717.47
8.1.40.0050.00317.48
8.1.30.0030.00517.63
8.1.20.0040.00417.64
8.1.10.0060.00317.45
8.1.00.0000.00817.47
8.0.300.0000.00818.77
8.0.290.0000.01216.63
8.0.280.0000.00718.37
8.0.270.0030.00317.18
8.0.260.0030.00316.79
8.0.250.0040.00416.92
8.0.240.0060.00316.75
8.0.230.0000.00716.76
8.0.220.0040.00416.86
8.0.210.0000.00816.75
8.0.200.0070.00016.74
8.0.190.0080.00016.76
8.0.180.0000.00716.85
8.0.170.0000.01016.74
8.0.160.0030.00416.75
8.0.150.0070.00016.78
8.0.140.0000.00716.69
8.0.130.0050.00013.28
8.0.120.0050.00316.68
8.0.110.0060.00316.79
8.0.100.0000.00816.93
8.0.90.0000.00716.79
8.0.80.0060.00916.73
8.0.70.0040.00416.70
8.0.60.0040.00316.70
8.0.50.0000.00716.71
8.0.30.0140.00716.98
8.0.20.0160.00917.40
8.0.10.0040.00416.88
8.0.00.0080.00916.47
7.4.330.0000.00515.00
7.4.320.0060.00016.36
7.4.300.0030.00316.50
7.4.290.0060.00016.59
7.4.280.0030.00316.59
7.4.270.0000.00816.58
7.4.260.0030.00316.59
7.4.250.0040.00416.56
7.4.240.0030.00416.58
7.4.230.0020.00516.46
7.4.220.0110.00616.63
7.4.210.0050.00916.45
7.4.200.0030.00316.49
7.4.190.0030.00516.64
7.4.160.0110.00716.38
7.4.150.0060.01117.40
7.4.140.0110.00717.86
7.4.130.0040.01716.52
7.4.120.0050.01216.53
7.4.110.0130.00616.45
7.4.100.0200.00316.29
7.4.90.0030.01516.39
7.4.80.0030.01519.39
7.4.70.0120.00916.48
7.4.60.0060.01216.38
7.4.50.0000.00416.40
7.4.40.0110.00622.77
7.4.30.0000.01616.49
7.4.00.0030.01314.63
7.3.330.0030.00313.10
7.3.320.0000.00513.21
7.3.310.0060.00316.23
7.3.300.0030.00616.25
7.3.290.0030.01316.23
7.3.280.0090.00616.27
7.3.270.0100.00717.40
7.3.260.0140.00316.20
7.3.250.0120.00616.29
7.3.240.0000.01616.22
7.3.230.0030.01516.54
7.3.210.0070.01016.18
7.3.200.0080.00819.39
7.3.190.0100.00716.33
7.3.180.0000.01516.23
7.3.170.0030.01316.27
7.3.160.0170.00016.29
7.3.120.0110.00414.38
7.3.110.0000.01114.63
7.3.100.0060.00614.99
7.3.90.0120.00014.71
7.3.80.0000.01714.73
7.3.70.0060.00614.64
7.3.60.0060.00614.77
7.3.50.0040.00414.66
7.3.40.0070.00714.76
7.3.30.0120.00314.44
7.3.20.0030.01316.34
7.3.10.0030.00516.49
7.3.00.0080.00316.37
7.2.330.0090.00916.30
7.2.320.0080.01216.40
7.2.310.0070.01016.63
7.2.300.0130.00316.54
7.2.290.0120.00416.71
7.2.240.0030.01315.14
7.2.230.0000.01414.77
7.2.220.0100.00014.86
7.2.210.0060.00614.73
7.2.200.0090.00614.93
7.2.190.0030.01014.88
7.2.180.0040.01414.75
7.2.170.0000.00814.76
7.2.160.0000.01114.84
7.2.150.0000.01216.95
7.2.140.0040.00816.63
7.2.130.0060.00916.74
7.2.120.0030.01416.80
7.2.110.0080.00416.58
7.2.100.0030.00616.66
7.2.90.0040.01216.61
7.2.80.0070.00716.63
7.2.70.0060.00316.96
7.2.60.0040.01116.56
7.2.50.0080.00416.52
7.2.40.0000.01216.98
7.2.30.0100.00616.73
7.2.20.0030.01316.98
7.2.10.0100.00716.89
7.2.00.0000.01018.05
7.1.330.0000.01115.81
7.1.320.0070.00315.82
7.1.310.0040.00715.65
7.1.300.0070.00715.74
7.1.290.0040.00815.82
7.1.280.0030.01215.79
7.1.270.0080.00615.61
7.1.260.0040.00415.83
7.1.250.0000.01515.81
7.1.200.0120.00215.64
7.1.100.0030.00818.17
7.1.70.0030.00616.87
7.1.60.0080.01219.21
7.1.50.0040.01216.95
7.1.00.0000.04022.51
7.0.200.0170.00014.59
7.0.140.0130.06322.21
7.0.60.0130.03720.00
7.0.50.0100.06717.88
7.0.40.0100.03720.05
7.0.30.0230.04320.09
7.0.20.0230.05320.30
7.0.10.0200.08320.08
7.0.00.0130.08020.18
5.6.280.0030.07320.91
5.6.210.0130.07320.60
5.6.200.0030.08318.19
5.6.190.0100.08320.59
5.6.180.0270.06020.48
5.6.170.0430.07020.50
5.6.160.0070.05020.46
5.6.150.0070.06318.18
5.6.140.0030.04018.11
5.6.130.0130.07018.23
5.6.120.0070.08321.00
5.6.110.0100.03721.02
5.6.100.0100.08021.00
5.6.90.0130.06721.11
5.6.80.0100.06020.38
5.6.70.0330.06720.39
5.5.350.0030.08020.45
5.5.340.0030.07717.99
5.5.330.0100.04020.43
5.5.320.0170.08320.34
5.5.310.0230.05320.35
5.5.300.0130.07317.93
5.5.290.0030.04017.96
5.5.280.0070.08720.74
5.5.270.0230.06720.85
5.5.260.0030.04320.80
5.5.250.0130.05020.55
5.5.240.0130.05020.19
5.4.450.0730.06319.56
5.4.440.0830.06319.34
5.4.430.0870.07319.47
5.4.420.0000.06719.48
5.4.410.0800.06019.18
5.4.400.0470.06318.82
5.4.390.0270.07018.73
5.4.380.0330.05318.79
5.4.370.0170.05018.70
5.4.360.0100.05318.71
5.4.350.0050.03812.02
5.4.340.0060.04612.02
5.4.320.0070.04012.51
5.4.310.0060.04712.51
5.4.300.0140.03212.52
5.4.290.0060.03812.50
5.4.280.0110.03112.38
5.4.270.0090.03312.38
5.4.260.0090.03512.37
5.4.250.0060.04012.38
5.4.240.0100.03712.38
5.4.230.0080.04112.37
5.4.220.0040.03712.36
5.4.210.0070.03812.37
5.4.200.0060.04012.37
5.4.190.0050.03712.36
5.4.180.0100.03412.36
5.4.170.0090.04212.37
5.4.160.0080.03812.37
5.4.150.0080.04712.36
5.4.140.0060.03812.05
5.4.130.0070.03712.04
5.4.120.0050.04112.00
5.4.110.0070.03611.99
5.4.100.0070.03511.99
5.4.90.0080.03511.99
5.4.80.0100.03311.99
5.4.70.0060.03511.99
5.4.60.0080.03511.98
5.4.50.0050.03611.99
5.4.40.0020.03811.98
5.4.30.0060.04111.97
5.4.20.0090.03611.97
5.4.10.0030.04011.97
5.4.00.0050.04111.46
5.3.290.0080.04612.80
5.3.280.0040.04112.70
5.3.270.0100.03812.73
5.3.260.0100.04312.72
5.3.250.0050.03712.72
5.3.240.0090.03312.72
5.3.230.0040.04012.71
5.3.220.0060.03712.68
5.3.210.0070.03712.68
5.3.200.0050.04412.68
5.3.190.0060.03712.68
5.3.180.0070.03512.67
5.3.170.0080.03412.67
5.3.160.0090.03512.68
5.3.150.0080.03512.68
5.3.140.0080.03512.66
5.3.130.0050.04012.66
5.3.120.0060.04112.65
5.3.110.0090.03712.65
5.3.100.0090.03612.12
5.3.90.0060.03812.08
5.3.80.0090.03612.08
5.3.70.0030.04012.07
5.3.60.0030.04212.06
5.3.50.0070.04312.00
5.3.40.0090.04212.00
5.3.30.0040.03611.96
5.3.20.0060.03511.75
5.3.10.0050.03811.71
5.3.00.0070.03711.70
5.2.170.0030.0339.19
5.2.160.0070.0279.19
5.2.150.0060.0319.20
5.2.140.0030.0329.19
5.2.130.0040.0309.15
5.2.120.0060.0299.15
5.2.110.0090.0259.16
5.2.100.0070.0269.16
5.2.90.0020.0329.16
5.2.80.0040.0349.15
5.2.70.0030.0319.15
5.2.60.0040.0309.10
5.2.50.0050.0339.07
5.2.40.0070.0389.04
5.2.30.0070.0279.03
5.2.20.0040.0309.01
5.2.10.0040.0328.92
5.2.00.0060.0278.79
5.1.60.0060.0258.07
5.1.50.0050.0258.07
5.1.40.0080.0218.05
5.1.30.0030.0278.40
5.1.20.0060.0258.43
5.1.10.0040.0268.15
5.1.00.0030.0268.14
5.0.50.0020.0256.63
5.0.40.0030.0216.48
5.0.30.0050.0296.30
5.0.20.0040.0196.27
5.0.10.0020.0216.24
5.0.00.0010.0346.23
4.4.90.0040.0154.78
4.4.80.0020.0184.76
4.4.70.0030.0174.75
4.4.60.0010.0184.76
4.4.50.0010.0234.77
4.4.40.0010.0284.71
4.4.30.0030.0184.76
4.4.20.0030.0164.84
4.4.10.0030.0164.85
4.4.00.0040.0244.76
4.3.110.0030.0164.67
4.3.100.0010.0174.67
4.3.90.0020.0154.63
4.3.80.0030.0264.58
4.3.70.0070.0124.63
4.3.60.0020.0214.63
4.3.50.0000.0184.63
4.3.40.0040.0234.53
4.3.30.0020.0183.29
4.3.20.0030.0163.26
4.3.10.0040.0173.23
4.3.00.0030.0206.61

preferences:
65.84 ms | 401 KiB | 5 Q