3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} abstract class Bar { public abstract function test(Foo $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.0170.00316.38
8.3.60.0030.01718.56
8.3.50.0130.00521.08
8.3.40.0070.00718.72
8.3.30.0030.01220.21
8.3.20.0000.00720.09
8.3.10.0000.00721.96
8.3.00.0070.00022.34
8.2.180.0170.00318.66
8.2.170.0060.01318.76
8.2.160.0140.00022.96
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0070.01126.16
8.2.120.0080.00019.64
8.2.110.0100.00022.20
8.2.100.0060.00617.59
8.2.90.0040.00419.08
8.2.80.0050.00319.19
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0080.00018.12
8.2.30.0030.00717.98
8.2.20.0000.00717.62
8.2.10.0040.00417.63
8.2.00.0050.00517.52
8.1.280.0110.00425.92
8.1.270.0100.00021.95
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00722.42
8.1.230.0080.00420.98
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.23
8.1.190.0040.00417.51
8.1.180.0000.00718.91
8.1.170.0030.00518.66
8.1.160.0030.00322.10
8.1.150.0070.00018.44
8.1.140.0060.00317.33
8.1.130.0000.00717.80
8.1.120.0060.00317.45
8.1.110.0040.00417.43
8.1.100.0070.00017.29
8.1.90.0040.00317.25
8.1.80.0070.00017.28
8.1.70.0030.00317.30
8.1.60.0040.00417.57
8.1.50.0030.00517.47
8.1.40.0030.00517.40
8.1.30.0050.00217.45
8.1.20.0050.00317.63
8.1.10.0000.00717.55
8.1.00.0030.00717.45
8.0.300.0070.00321.79
8.0.290.0040.00417.05
8.0.280.0040.00418.38
8.0.270.0000.00717.06
8.0.260.0040.00416.74
8.0.250.0040.00416.86
8.0.240.0030.00616.80
8.0.230.0030.00316.84
8.0.220.0030.00316.80
8.0.210.0070.00016.75
8.0.200.0030.00316.85
8.0.190.0070.00016.76
8.0.180.0070.00316.76
8.0.170.0000.00716.86
8.0.160.0000.00716.82
8.0.150.0000.00716.66
8.0.140.0000.00716.80
8.0.130.0050.00013.13
8.0.120.0000.00816.77
8.0.110.0040.00416.71
8.0.100.0070.00016.80
8.0.90.0030.00316.81
8.0.80.0030.01616.85
8.0.70.0000.00716.73
8.0.60.0000.00716.86
8.0.50.0070.00016.86
8.0.30.0130.00617.12
8.0.20.0070.01117.40
8.0.10.0000.00717.05
8.0.00.0060.01216.72
7.4.330.0000.00615.00
7.4.320.0030.00316.46
7.4.300.0030.00316.56
7.4.290.0040.00416.38
7.4.280.0040.00416.58
7.4.270.0070.00016.54
7.4.260.0030.00716.62
7.4.250.0000.00716.49
7.4.240.0050.00216.51
7.4.230.0000.00716.60
7.4.220.0090.01316.54
7.4.210.0060.00916.59
7.4.200.0040.00416.69
7.4.190.0030.00616.39
7.4.160.0160.00416.53
7.4.150.0030.01417.40
7.4.140.0130.00717.86
7.4.130.0110.00716.40
7.4.120.0110.00516.61
7.4.110.0070.01316.34
7.4.100.0090.00916.50
7.4.90.0130.00916.37
7.4.80.0070.01419.39
7.4.70.0030.01316.42
7.4.60.0030.01216.36
7.4.50.0020.00216.70
7.4.40.0040.01422.77
7.4.30.0140.00316.55
7.3.330.0000.00613.24
7.3.320.0000.00613.23
7.3.310.0070.00016.11
7.3.300.0000.00716.10
7.3.290.0070.00716.21
7.3.280.0130.00216.21
7.3.270.0060.01217.40
7.3.260.0060.01216.40
7.3.250.0100.01016.34
7.3.240.0140.00416.25
7.3.230.0100.00716.39
7.3.210.0060.01016.30
7.3.200.0130.00319.39
7.3.190.0120.00816.34
7.3.180.0110.01116.54
7.3.170.0090.00716.27
7.3.160.0130.00316.27
7.2.330.0130.00716.23
7.2.320.0120.01216.42
7.2.310.0040.01116.25
7.2.300.0170.00016.30
7.2.290.0100.00716.66
5.4.280.0030.03812.38
5.4.270.0050.03712.38
5.4.260.0110.03212.38
5.4.250.0070.03812.38
5.4.240.0030.04012.38
5.4.230.0040.03912.37
5.4.220.0070.03512.37
5.4.210.0050.03612.37
5.4.200.0040.04012.37
5.4.190.0070.03612.36
5.4.180.0030.04112.37
5.4.170.0090.04112.38
5.4.160.0110.03512.38
5.4.150.0060.03712.37
5.4.140.0060.03712.05
5.4.130.0050.03712.04
5.4.120.0040.03912.00
5.4.110.0080.04412.00
5.4.100.0040.03811.99
5.4.90.0050.04211.99
5.4.80.0070.03811.99
5.4.70.0050.03711.99
5.4.60.0110.03911.99
5.4.50.0080.04511.99
5.4.40.0040.05211.98
5.4.30.0070.04911.98
5.4.20.0090.03911.98
5.4.10.0050.04011.98
5.4.00.0100.04711.47
5.3.280.0070.03912.71
5.3.270.0070.05012.73
5.3.260.0060.04212.72
5.3.250.0080.04012.71
5.3.240.0090.03712.72
5.3.230.0100.03612.70
5.3.220.0100.03512.68
5.3.210.0110.03712.68
5.3.200.0070.04912.68
5.3.190.0090.03812.68
5.3.180.0090.03912.67
5.3.170.0070.04512.67
5.3.160.0070.03812.68
5.3.150.0100.04112.68
5.3.140.0070.03712.66
5.3.130.0110.03612.66
5.3.120.0060.03812.66
5.3.110.0080.03612.66
5.3.100.0030.04012.12
5.3.90.0060.03712.08
5.3.80.0060.03712.08
5.3.70.0050.03612.07
5.3.60.0050.03612.06
5.3.50.0030.04212.00
5.3.40.0070.03612.00
5.3.30.0050.03511.96
5.3.20.0050.03511.74
5.3.10.0050.03711.71
5.3.00.0060.03611.69

preferences:
39.03 ms | 401 KiB | 5 Q