3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function dump(self $baz) { var_dump($baz); } } class Bar extends Foo { public function dump(Foo $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.0140.00318.22
8.3.50.0110.00821.99
8.3.40.0120.00418.89
8.3.30.0030.01019.04
8.3.20.0040.00420.06
8.3.10.0000.00820.25
8.3.00.0050.00317.91
8.2.180.0070.00716.63
8.2.170.0100.01022.96
8.2.160.0120.00320.27
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00421.90
8.2.110.0030.00620.88
8.2.100.0000.01217.59
8.2.90.0060.00317.65
8.2.80.0030.00517.97
8.2.70.0040.00417.38
8.2.60.0060.00317.80
8.2.50.0050.00318.07
8.2.40.0070.00318.16
8.2.30.0050.00319.16
8.2.20.0080.00017.54
8.2.10.0000.00817.81
8.2.00.0070.00317.55
8.1.280.0100.00725.92
8.1.270.0100.00324.05
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0040.00422.48
8.1.230.0000.01120.91
8.1.220.0000.00817.74
8.1.210.0030.00718.91
8.1.200.0080.00017.10
8.1.190.0000.00717.10
8.1.180.0050.00318.10
8.1.170.0080.00018.59
8.1.160.0050.00322.06
8.1.150.0070.00018.69
8.1.140.0070.00017.39
8.1.130.0030.00317.77
8.1.120.0070.00017.39
8.1.110.0040.00417.38
8.1.100.0000.00717.28
8.1.90.0040.00417.22
8.1.80.0000.00717.35
8.1.70.0000.00717.31
8.1.60.0060.00317.50
8.1.50.0040.00417.52
8.1.40.0080.00017.42
8.1.30.0080.00017.53
8.1.20.0000.00817.59
8.1.10.0000.00717.35
8.1.00.0000.00817.29
8.0.300.0040.00419.86
8.0.290.0000.00716.75
8.0.280.0040.00418.38
8.0.270.0030.00317.09
8.0.260.0080.00017.20
8.0.250.0000.00716.97
8.0.240.0020.00516.97
8.0.230.0030.00316.86
8.0.220.0030.00316.86
8.0.210.0030.00316.82
8.0.200.0040.00416.82
8.0.190.0070.00317.00
8.0.180.0070.00016.82
8.0.170.0070.00316.77
8.0.160.0040.00416.83
8.0.150.0070.00016.85
8.0.140.0000.00716.78
8.0.130.0030.00313.32
8.0.120.0040.00416.75
8.0.110.0040.00416.89
8.0.100.0000.00716.88
8.0.90.0000.00716.93
8.0.80.0060.00916.76
8.0.70.0050.00316.67
8.0.60.0030.00616.79
8.0.50.0000.00716.87
8.0.30.0120.00916.94
8.0.20.0120.00717.40
8.0.10.0040.00417.02
8.0.00.0080.01016.79
7.4.330.0050.00015.03
7.4.320.0030.00316.53
7.4.300.0060.00016.62
7.4.290.0030.00316.51
7.4.280.0070.00016.45
7.4.270.0030.00316.61
7.4.260.0030.00316.47
7.4.250.0070.00016.47
7.4.240.0030.00316.54
7.4.230.0030.00316.61
7.4.220.0160.00316.58
7.4.210.0030.01416.43
7.4.200.0030.00516.41
7.4.160.0090.00616.48
7.4.150.0140.00417.40
7.4.140.0100.01017.86
7.4.130.0100.00716.40
7.4.120.0110.00616.40
7.4.110.0000.01616.24
7.4.100.0040.01216.46
7.4.90.0090.00916.24
7.4.80.0100.01016.41
7.4.70.0130.00616.29
7.4.60.0070.01016.46
7.4.50.0020.00216.32
7.4.40.0150.00316.64
7.4.30.0030.01416.27
7.4.00.0120.00315.05
7.3.330.0030.00313.20
7.3.320.0000.00613.31
7.3.310.0070.00016.13
7.3.300.0000.00716.23
7.3.290.0000.01316.21
7.3.280.0100.00916.21
7.3.270.0110.00617.40
7.3.260.0080.00816.12
7.3.250.0060.01116.31
7.3.240.0090.00916.34
7.3.230.0100.00616.43
7.3.210.0110.00716.17
7.3.200.0100.00719.39
7.3.190.0090.00616.13
7.3.180.0110.00416.46
7.3.170.0110.01416.48
7.3.160.0080.00816.23
7.2.330.0100.00716.66
7.2.320.0130.00616.69
7.2.310.0100.00716.58
7.2.300.0060.01016.23
7.2.290.0090.00916.67
7.2.80.0030.00616.26
7.2.60.0060.00816.79
7.2.00.0040.01219.28
7.1.200.0080.00315.65
7.1.100.0030.00918.15
7.1.70.0070.00317.01
7.1.60.0110.01419.32
7.1.50.0070.01416.98
7.1.00.0030.07722.46
7.0.200.0000.00816.40
7.0.140.0000.07722.07
7.0.60.0070.07320.09
7.0.50.0030.06317.88
7.0.40.0100.08020.03
7.0.30.0430.06720.23
7.0.20.0300.07020.06
7.0.10.0100.07020.07
7.0.00.0100.05720.08
5.6.280.0030.08321.13
5.6.210.0100.07720.51
5.6.200.0030.04318.12
5.6.190.0100.08320.64
5.6.180.0500.06020.63
5.6.170.0230.03320.55
5.6.160.0030.04320.54
5.6.150.0100.07018.29
5.6.140.0130.07718.28
5.6.130.0070.04018.20
5.6.120.0000.08721.02
5.6.110.0070.09321.01
5.6.100.0030.07320.98
5.6.90.0070.05721.09
5.6.80.0100.03320.48
5.5.350.0270.06020.38
5.5.340.0070.08018.04
5.5.330.0130.05720.19
5.5.320.0470.05320.27
5.5.310.0270.04020.34
5.5.300.0030.05318.04
5.5.290.0030.04018.06
5.5.280.0030.06020.80
5.5.270.0000.05020.95
5.5.260.0000.09720.88
5.5.250.0130.04720.66
5.5.240.0130.08320.26
5.4.450.0300.03719.50
5.4.440.0170.08319.45
5.4.430.0300.05019.45
5.4.420.0330.06319.48
5.4.410.0200.04019.33
5.4.400.0230.03718.87
5.4.390.0230.05319.08
5.4.380.0300.04718.99
5.4.370.0330.06318.99
5.4.360.0330.04719.21
5.4.350.0330.05018.98
5.4.340.0370.06719.14
5.4.320.0370.06319.32
5.4.310.0300.06719.08
5.4.300.0300.06719.30
5.4.290.0230.07719.16
5.4.280.0300.07319.14
5.4.270.0400.05718.85
5.4.260.0270.04719.21
5.4.250.0300.06719.08
5.4.240.0430.05318.86
5.4.230.0270.05019.14
5.4.220.0300.07018.84
5.4.210.0270.07019.03
5.4.200.0270.05319.11
5.4.190.0270.05718.93
5.4.180.0270.03718.84
5.4.170.0300.07018.84
5.4.160.0270.07318.82
5.4.150.0270.03719.13
5.4.140.0300.06716.51
5.4.130.0270.04016.39
5.4.120.0200.03716.56
5.4.110.0300.06716.56
5.4.100.0230.05316.58
5.4.90.0230.07316.30
5.4.80.0230.06316.59
5.4.70.0270.06016.22
5.4.60.0330.05716.52
5.4.50.0230.05316.55
5.4.40.0400.04316.32
5.4.30.0300.04016.23
5.4.20.0400.05716.16
5.4.10.0200.04016.42
5.4.00.0200.04316.11
5.3.290.0200.06714.64
5.3.280.0330.04014.61
5.3.270.0270.05014.69
5.3.260.0270.06714.58
5.3.250.0230.04014.53
5.3.240.0370.05714.60
5.3.230.0200.04014.64
5.3.220.0230.03714.53
5.3.210.0230.03714.57
5.3.200.0270.04714.46
5.3.190.0300.05014.47
5.3.180.0300.07014.64
5.3.170.0230.05014.53
5.3.160.0230.04314.55
5.3.150.0230.07314.61
5.3.140.0330.03714.54
5.3.130.0230.04314.55
5.3.120.0230.03714.56
5.3.110.0300.06714.55
5.3.100.0270.04313.95
5.3.90.0230.04014.02
5.3.80.0270.04714.25
5.3.70.0230.03713.93
5.3.60.0300.04313.98
5.3.50.0230.04314.06
5.3.40.0200.04713.88
5.3.30.0230.05314.02
5.3.20.0300.04013.78
5.3.10.0370.06013.65
5.3.00.0230.04013.65
5.2.170.0270.06011.75
5.2.160.0200.04711.75
5.2.150.0230.03011.75
5.2.140.0230.05311.75
5.2.130.0200.03711.75
5.2.120.0200.03711.75
5.2.110.0200.05711.75
5.2.100.0200.02711.75
5.2.90.0230.05311.75
5.2.80.0200.05011.75
5.2.70.0200.06011.75
5.2.60.0230.06011.75
5.2.50.0270.05311.75
5.2.40.0370.02011.75
5.2.30.0130.03011.75
5.2.20.0130.03311.75
5.2.10.0170.05311.75
5.2.00.0170.04711.75
5.1.60.0200.05311.75
5.1.50.0270.04311.75
5.1.40.0170.03011.75
5.1.30.0200.03311.75
5.1.20.0170.04011.75
5.1.10.0200.05011.75
5.1.00.0170.05311.75
5.0.50.0130.02311.75
5.0.40.0100.02311.75
5.0.30.0100.06011.75
5.0.20.0130.04011.75
5.0.10.0130.03711.75
5.0.00.0100.04311.75
4.4.90.0100.02711.75
4.4.80.0200.02711.75
4.4.70.0070.02711.75
4.4.60.0030.02311.75
4.4.50.0070.01711.75
4.4.40.0100.04011.75
4.4.30.0030.03011.75
4.4.20.0070.01711.75
4.4.10.0100.03311.75
4.4.00.0030.04311.75
4.3.110.0070.02311.75
4.3.100.0130.03011.75
4.3.90.0100.03311.75
4.3.80.0070.05711.75
4.3.70.0130.02711.75
4.3.60.0100.03311.75
4.3.50.0100.03311.75
4.3.40.0070.04311.75
4.3.30.0030.03311.75
4.3.20.0000.03311.75
4.3.10.0070.03311.75
4.3.00.0030.03011.75

preferences:
38.68 ms | 401 KiB | 5 Q