3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function dump(FooInterface $baz); } class Foo implements FooInterface { public function dump(FooInterface $baz) { var_dump($baz); } } class Bar extends Foo { public function dump(FooInterface $baz) { parent::dump($baz); } } (new Foo)->dump(new Bar); (new Bar)->dump(new Bar); (new Bar)->dump(new Foo);

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.18
8.3.50.0100.01022.04
8.3.40.0120.00618.70
8.3.30.0000.01418.95
8.3.20.0080.00020.19
8.3.10.0040.00420.45
8.3.00.0080.00019.56
8.2.180.0120.00316.32
8.2.170.0040.01122.96
8.2.160.0130.00620.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0000.00822.23
8.2.110.0090.00020.52
8.2.100.0080.00618.16
8.2.90.0040.00419.27
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0050.00318.09
8.2.30.0040.00419.25
8.2.20.0000.00717.62
8.2.10.0040.00417.99
8.2.00.0080.00017.58
8.1.280.0110.00725.92
8.1.270.0060.00322.06
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.96
8.1.230.0000.01019.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.10
8.1.190.0040.00417.13
8.1.180.0050.00418.10
8.1.170.0000.00818.46
8.1.160.0070.00022.01
8.1.150.0000.00718.82
8.1.140.0060.00317.39
8.1.130.0000.00717.87
8.1.120.0030.00317.29
8.1.110.0040.00417.33
8.1.100.0000.00717.39
8.1.90.0030.00517.36
8.1.80.0000.00717.41
8.1.70.0030.00317.29
8.1.60.0030.00617.39
8.1.50.0050.00317.46
8.1.40.0030.00617.33
8.1.30.0080.00017.46
8.1.20.0040.00417.58
8.1.10.0040.00417.36
8.1.00.0000.00717.22
8.0.300.0030.00518.77
8.0.290.0060.00316.63
8.0.280.0030.00318.48
8.0.270.0030.00317.17
8.0.260.0030.00317.29
8.0.250.0080.00017.02
8.0.240.0040.00417.01
8.0.230.0030.00317.04
8.0.220.0040.00416.97
8.0.210.0040.00416.95
8.0.200.0030.00317.03
8.0.190.0050.00316.96
8.0.180.0040.00417.01
8.0.170.0000.00716.84
8.0.160.0040.00416.93
8.0.150.0000.00816.89
8.0.140.0000.00816.87
8.0.130.0030.00313.37
8.0.120.0080.00016.88
8.0.110.0070.00016.98
8.0.100.0050.00316.90
8.0.90.0040.00416.79
8.0.80.0100.00616.77
8.0.70.0040.00416.91
8.0.60.0050.00316.77
8.0.50.0040.00416.95
8.0.30.0070.01317.02
8.0.20.0120.00717.40
8.0.10.0050.00217.04
8.0.00.0100.01016.81
7.4.330.0000.00515.00
7.4.320.0000.00616.59
7.4.300.0040.00416.55
7.4.290.0000.00616.64
7.4.280.0040.00416.50
7.4.270.0070.00016.52
7.4.260.0040.00416.50
7.4.250.0040.00416.61
7.4.240.0040.00316.54
7.4.230.0070.00016.44
7.4.220.0070.01016.39
7.4.210.0080.00816.56
7.4.200.0000.00816.33
7.4.160.0090.00616.39
7.4.150.0030.01517.40
7.4.140.0070.01017.86
7.4.130.0110.00716.68
7.4.120.0120.00916.40
7.4.110.0140.00416.65
7.4.100.0070.01116.38
7.4.90.0100.00716.55
7.4.80.0070.01116.59
7.4.70.0060.01016.38
7.4.60.0120.00616.37
7.4.50.0000.00716.46
7.4.40.0100.00616.25
7.4.30.0120.00616.39
7.4.00.0090.00914.88
7.3.330.0060.00013.31
7.3.320.0000.00613.26
7.3.310.0000.00716.35
7.3.300.0030.00316.27
7.3.290.0040.01116.30
7.3.280.0030.01216.31
7.3.270.0140.00317.40
7.3.260.0120.00816.16
7.3.250.0070.01016.40
7.3.240.0110.00816.25
7.3.230.0060.00916.39
7.3.210.0030.01416.47
7.3.200.0140.00719.39
7.3.190.0060.01416.41
7.3.180.0040.01216.35
7.3.170.0090.00816.58
7.3.160.0000.01516.22
7.3.10.0170.00716.74
7.3.00.0170.00316.48
7.2.330.0130.00316.59
7.2.320.0060.01816.39
7.2.310.0100.00716.44
7.2.300.0100.00716.80
7.2.290.0110.00616.80
7.2.130.0100.01016.73
7.2.120.0080.00516.84
7.2.110.0190.00016.36
7.2.100.0090.00616.70
7.2.90.0060.00916.71
7.2.80.0130.00316.79
7.2.70.0090.00916.78
7.2.60.0050.00916.84
7.2.50.0070.00416.79
7.2.40.0060.01016.68
7.2.30.0040.01116.33
7.2.20.0000.01016.80
7.2.10.0000.01616.64
7.2.00.0050.00918.05
7.1.250.0100.00315.61
7.1.200.0030.01215.92
7.1.100.0090.00318.18
7.1.70.0040.00416.86
7.1.60.0060.01919.32
7.1.50.0060.01516.68
7.1.00.0030.07722.30
7.0.200.0030.00716.76
7.0.140.0000.07722.04
7.0.110.0030.06321.89
7.0.100.0000.08321.74
7.0.90.0000.06321.66
7.0.80.0030.06321.73
7.0.70.0000.04021.84
7.0.60.0100.05321.77
7.0.50.0030.04321.84
7.0.40.0030.07019.88
7.0.30.0070.07019.75
7.0.20.0100.06019.80
7.0.10.0030.06319.81
7.0.00.0030.07719.88
5.6.280.0170.05720.79
5.6.260.0070.08020.89
5.6.250.0030.07020.58
5.6.240.0030.04020.66
5.6.230.0130.07020.66
5.6.220.0070.07320.70
5.6.210.0070.07020.73
5.6.200.0100.06320.69
5.6.190.0000.04320.62
5.6.180.0070.03320.67
5.6.170.0030.08020.58
5.6.160.0000.05720.57
5.6.150.0070.06020.56
5.6.140.0030.06320.71
5.6.130.0000.05320.64
5.6.120.0030.03720.47
5.6.110.0070.07020.63
5.6.100.0000.07020.69
5.6.90.0000.04020.61
5.6.80.0070.07020.03
5.6.70.0000.08320.09
5.6.60.0000.05719.84
5.6.50.0000.07720.02
5.6.40.0070.06719.99
5.6.30.0030.06720.08
5.6.20.0100.06319.92
5.6.10.0000.07720.04
5.6.00.0000.04019.95
5.5.380.0070.05317.63
5.5.370.0030.07717.60
5.5.360.0030.08317.61
5.5.350.0000.06717.55
5.5.340.0030.03717.96
5.5.330.0070.06018.22
5.5.320.0070.03317.93
5.5.310.0000.05017.93
5.5.300.0070.07317.95
5.5.290.0000.04318.12
5.5.280.0070.07318.23
5.5.270.0070.05018.25
5.5.260.0030.07718.21
5.5.250.0070.06717.72
5.5.240.0000.07717.30
5.5.230.0030.07717.51
5.5.220.0000.07717.45
5.5.210.0030.04717.64
5.5.200.0030.07317.45
5.5.190.0030.07717.60
5.5.180.0000.06017.61
5.5.160.0000.07317.48
5.5.150.0070.07317.47
5.5.140.0030.05317.57
5.5.130.0000.04017.27
5.5.120.0030.05317.48
5.5.110.0030.03717.60
5.5.100.0000.08017.36
5.5.90.0000.04017.20
5.5.80.0070.06317.34
5.5.70.0030.06017.34
5.5.60.0070.07017.32
5.5.50.0000.03717.34
5.5.40.0000.07717.47
5.5.30.0000.08017.34
5.5.20.0000.07717.17
5.5.10.0100.06317.31
5.5.00.0000.07717.36
5.4.450.0000.05019.34
5.4.440.0000.08019.38
5.4.430.0000.06319.50
5.4.420.0070.03319.30
5.4.410.0000.07719.40
5.4.400.0000.06719.09
5.4.390.0070.08019.09
5.4.380.0000.07719.20
5.4.370.0070.06018.99
5.4.360.0070.07019.16
5.4.350.0000.06319.23
5.4.340.0030.07019.00
5.4.320.0070.06319.18
5.4.310.0030.06319.14
5.4.300.0070.07319.00
5.4.290.0000.07019.16
5.4.280.0130.06319.34
5.4.270.0000.05019.33
5.4.260.0000.03719.04
5.4.250.0000.07718.98
5.4.240.0000.07019.34
5.4.230.0030.03719.22
5.4.220.0000.07019.22
5.4.210.0030.08019.05
5.4.200.0100.05719.13
5.4.190.0070.07019.30
5.4.180.0000.07019.04
5.4.170.0000.07018.98
5.4.160.0130.06318.98
5.4.150.0000.07019.31
5.4.140.0030.07716.55
5.4.130.0000.03316.43
5.4.120.0000.07016.38
5.4.110.0030.06716.52
5.4.100.0030.06016.55
5.4.90.0000.06016.52
5.4.80.0030.06316.45
5.4.70.0030.07016.59
5.4.60.0000.06016.43
5.4.50.0030.07316.52
5.4.40.0000.03316.61
5.4.30.0030.07316.40
5.4.20.0000.03316.52
5.4.10.0030.06716.54
5.4.00.0030.07015.73
5.3.290.0000.06314.67
5.3.280.0070.03014.60
5.3.270.0000.08014.64
5.3.260.0070.04314.70
5.3.250.0070.06714.62
5.3.240.0070.03014.59
5.3.230.0100.07014.70
5.3.220.0000.08714.71
5.3.210.0070.07014.66
5.3.200.0030.07314.61
5.3.190.0100.07014.58
5.3.180.0000.04314.66
5.3.170.0070.07314.56
5.3.160.0030.07314.58
5.3.150.0000.06014.56
5.3.140.0000.04714.57
5.3.130.0030.07014.57
5.3.120.0030.07014.78
5.3.110.0070.07714.68
5.3.100.0030.07014.18
5.3.90.0070.06714.11
5.3.80.0100.07014.06
5.3.70.0070.06314.11
5.3.60.0030.05014.04
5.3.50.0000.07714.09
5.3.40.0070.03713.94
5.3.30.0100.06313.91
5.3.20.0000.06313.69
5.3.10.0170.05713.64
5.3.00.0030.05313.74
5.2.170.0000.06311.12
5.2.160.0070.05711.16
5.2.150.0030.06311.23
5.2.140.0030.04711.14
5.2.130.0070.05011.10
5.2.120.0000.06011.12
5.2.110.0070.05311.09
5.2.100.0030.06010.96
5.2.90.0100.06011.19
5.2.80.0000.06311.16
5.2.70.0000.06310.96
5.2.60.0000.06311.06
5.2.50.0030.06011.25
5.2.40.0030.05711.07
5.2.30.0070.05310.83
5.2.20.0000.06010.82
5.2.10.0000.06010.86
5.2.00.0070.05310.71
5.1.60.0070.05010.00
5.1.50.0100.0439.96
5.1.40.0030.03310.24
5.1.30.0000.05710.34
5.1.20.0070.05310.35
5.1.10.0030.04710.05
5.1.00.0000.06010.06
5.0.50.0030.0408.80
5.0.40.0070.0338.50
5.0.30.0000.0508.06
5.0.20.0000.0438.21
5.0.10.0000.0378.14
5.0.00.0000.0678.17
4.4.90.0030.0337.37
4.4.80.0030.0307.37
4.4.70.0000.0277.37
4.4.60.0030.0307.37
4.4.50.0030.0237.37
4.4.40.0030.0507.37
4.4.30.0000.0307.37
4.4.20.0030.0337.37
4.4.10.0000.0337.37
4.4.00.0030.0537.37
4.3.110.0000.0377.37
4.3.100.0070.0277.37
4.3.90.0000.0237.37
4.3.80.0030.0477.37
4.3.70.0070.0237.37
4.3.60.0030.0337.37
4.3.50.0000.0337.37
4.3.40.0000.0577.37
4.3.30.0000.0407.37
4.3.20.0030.0237.37
4.3.10.0000.0307.37
4.3.00.0000.0307.37

preferences:
37.64 ms | 401 KiB | 5 Q