3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface Foo { public function bar(?string $baz = null); } class Fooo implements Foo { public function bar(string $baz = null) { return $baz; } } class Barz extends Fooo { public function bar(?string $baz = null) { return var_export($baz, true); } } $foo = new Fooo(); $bar = new Barz(); var_dump($foo->bar(), $bar->bar());

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.5.80.0040.00416.68
8.5.70.0110.00716.65
8.5.60.0100.00716.78
8.5.50.0110.00716.73
8.5.30.0070.00319.62
8.5.20.0050.01319.63
8.5.10.0130.00516.67
8.5.00.0110.01120.04
8.4.230.0120.00819.63
8.4.220.0150.01119.46
8.4.210.0130.00919.53
8.4.180.0120.01219.78
8.4.170.0110.01020.50
8.4.160.0110.01122.30
8.4.150.0080.00416.93
8.4.140.0100.01017.43
8.4.130.0130.00417.77
8.4.120.0040.00524.17
8.4.110.0050.00520.81
8.4.100.0130.00818.53
8.4.90.0090.00718.73
8.4.80.0130.00818.72
8.4.70.0060.00218.02
8.4.60.0080.00719.07
8.4.50.0090.01118.40
8.4.40.0100.01019.24
8.4.30.0160.00320.34
8.4.20.0070.01118.89
8.4.10.0060.00319.48
8.3.320.0120.00718.36
8.3.310.0040.00518.36
8.3.300.0110.01020.74
8.3.290.0130.00920.82
8.3.280.0200.01218.21
8.3.270.0130.01016.55
8.3.260.0090.00816.66
8.3.250.0100.00818.87
8.3.240.0110.00917.29
8.3.230.0120.00816.43
8.3.220.0090.00818.72
8.3.210.0090.00316.46
8.3.200.0050.00416.57
8.3.190.0130.00517.10
8.3.180.0110.00816.95
8.3.170.0060.01020.59
8.3.160.0060.00918.29
8.3.150.0140.00417.13
8.3.140.0070.01116.58
8.3.130.0050.00518.33
8.3.120.0000.00820.77
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0070.00719.36
8.3.70.0120.00616.58
8.3.60.0120.00916.50
8.3.50.0090.00617.98
8.3.40.0120.00318.96
8.3.30.0150.00718.67
8.3.20.0090.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.320.0050.00417.99
8.2.310.0120.00718.00
8.2.300.0090.01022.20
8.2.290.0110.00720.27
8.2.280.0080.00918.24
8.2.270.0090.00917.02
8.2.260.0110.00416.42
8.2.250.0050.00318.35
8.2.240.0080.00018.88
8.2.230.0030.00622.58
8.2.220.0000.00837.54
8.2.210.0160.00326.77
8.2.200.0050.00518.88
8.2.190.0110.00416.75
8.2.180.0030.01025.92
8.2.170.0070.01418.95
8.2.160.0140.00722.96
8.2.150.0050.00225.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0060.00326.16
8.2.110.0090.00019.19
8.2.100.0080.00417.84
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00818.05
8.2.40.0040.00418.16
8.2.30.0030.00518.02
8.2.20.0050.00218.05
8.2.10.0040.00419.23
8.2.00.0060.00319.15
8.1.340.0130.00719.80
8.1.330.0040.00621.73
8.1.320.0050.00716.13
8.1.310.0060.00316.34
8.1.300.0200.00017.84
8.1.290.0040.00430.84
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0060.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00422.19
8.1.230.0120.00017.64
8.1.220.0020.00517.74
8.1.210.0080.00019.13
8.1.200.0090.00317.36
8.1.190.0030.00517.36
8.1.180.0060.00318.10
8.1.170.0030.00518.62
8.1.160.0000.00718.93
8.1.150.0050.00318.89
8.1.140.0000.00718.91
8.1.130.0030.00320.17
8.1.120.0030.00517.50
8.1.110.0030.00517.41
8.1.100.0070.00017.41
8.1.90.0000.00717.44
8.1.80.0040.00417.36
8.1.70.0000.00717.46
8.1.60.0000.00817.57
8.1.50.0000.00917.40
8.1.40.0030.00517.40
8.1.30.0030.00517.59
8.1.20.0030.00617.67
8.1.10.0030.00517.51
8.1.00.0030.00517.51
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0080.00018.44
8.0.270.0030.00318.00
8.0.260.0030.00318.48
8.0.250.0030.00316.84
8.0.240.0030.00316.95
8.0.230.0000.00716.95
8.0.220.0000.00716.81
8.0.210.0000.00716.82
8.0.200.0030.00516.97
8.0.190.0000.00716.93
8.0.180.0030.00516.89
8.0.170.0100.00016.75
8.0.160.0040.00416.82
8.0.150.0030.00516.87
8.0.140.0000.00716.87
8.0.130.0060.00013.34
8.0.120.0000.00816.71
8.0.110.0040.00416.85
8.0.100.0000.00716.76
8.0.90.0000.00716.92
8.0.80.0050.01016.83
8.0.70.0040.01116.94
8.0.60.0100.00716.83
8.0.50.0030.01116.78
8.0.30.0060.00816.77
8.0.20.0060.00816.98
8.0.10.0000.01417.01
8.0.00.0080.00516.96
7.4.330.0020.00215.55
7.4.320.0060.00016.47
7.4.300.0000.00616.59
7.4.290.0070.00016.47
7.4.280.0040.00416.51
7.4.270.0000.00616.55
7.4.260.0050.00013.27
7.4.250.0050.00216.57
7.4.240.0050.00216.60
7.4.230.0000.00716.48
7.4.220.0030.00316.65
7.4.210.0060.00816.52
7.4.200.0030.01016.60
7.4.190.0120.00416.64
7.4.180.0030.01016.63
7.4.160.0060.00616.55
7.4.150.0100.00316.63
7.4.140.0090.00616.46
7.4.130.0060.00916.38
7.4.120.0100.00516.37
7.4.110.0040.01216.55
7.4.100.0080.00816.46
7.4.90.0090.00616.41
7.4.80.0040.01216.31
7.4.70.0090.00716.37
7.4.60.0050.00916.41
7.4.50.0080.00616.41
7.4.40.0090.00616.50
7.4.30.0070.00716.54
7.4.20.0030.01016.58
7.4.10.0080.00516.43
7.4.00.0040.00816.53
7.3.330.0070.00016.18
7.3.320.0000.00513.23
7.3.310.0030.00416.41
7.3.300.0000.00716.26
7.3.290.0110.00316.30
7.3.280.0080.00516.29
7.3.270.0130.00016.31
7.3.260.0030.01016.35
7.3.250.0120.00016.18
7.3.240.0050.00816.21
7.3.230.0060.01216.27
7.3.220.0110.00816.25
7.3.210.0030.01516.21
7.3.200.0060.01016.25
7.3.190.0110.00716.22
7.3.180.0040.01116.29
7.3.170.0060.01016.31
7.3.160.0030.01016.20
7.3.150.0080.00516.26
7.3.140.0070.00716.25
7.3.130.0060.00616.24
7.3.120.0080.00616.20
7.3.110.0090.00916.15
7.3.100.0070.00716.09
7.3.90.0030.01016.46
7.3.80.0070.00716.16
7.3.70.0060.00716.20
7.3.60.0060.00716.34
7.3.50.0090.00316.36
7.3.40.0030.01316.38
7.3.30.0000.01616.33
7.3.20.0070.00716.36
7.3.10.0090.00616.39
7.3.00.0140.00616.33

preferences:
117.24 ms | 1420 KiB | 5 Q