3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function test(string $value); } abstract class Fan implements Foo { abstract public function test(string $value); public function otherTest(string $value) { var_dump(__METHOD__, $value); } } class Bar extends Fan implements Foo { public function test(string $value) { var_dump(__METHOD__, $value); } } class Baz extends Bar {} class Bop extends Bar { public function test(string $value) { var_dump(__METHOD__, $value); } } class Fin extends Fan { public function test(string $value) { var_dump(__METHOD__, $value); } } $bar = new Bar(); $baz = new Baz(); $bop = new Bop(); $fin = new Fin(); $bar->test('bar'); $bar->otherTest('bar'); $bar->test('baz'); $bar->otherTest('bar'); $bop->test('bop'); $bop->otherTest('bop'); $fin->test('fan'); $fin->otherTest('fan');

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.0160.00618.43
8.3.50.0110.00718.11
8.3.40.0130.00720.29
8.3.30.0070.01718.69
8.3.20.0040.00420.57
8.3.10.0090.00020.33
8.3.00.0040.00420.47
8.2.180.0070.00716.75
8.2.170.0130.00322.96
8.2.160.0070.00721.14
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00419.96
8.2.110.0060.00320.76
8.2.100.0080.00417.78
8.2.90.0040.00417.75
8.2.80.0050.00318.79
8.2.70.0060.00317.90
8.2.60.0000.01018.09
8.2.50.0060.00319.09
8.2.40.0060.00320.97
8.2.30.0040.00419.26
8.2.20.0070.00018.04
8.2.10.0050.00319.26
8.2.00.0040.00419.33
8.1.280.0110.00425.92
8.1.270.0060.00320.73
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.54
8.1.230.0080.00320.79
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0050.00517.35
8.1.190.0030.00617.23
8.1.180.0040.00418.98
8.1.170.0080.00018.61
8.1.160.0030.00619.04
8.1.150.0060.00618.91
8.1.140.0040.00418.83
8.1.130.0000.00821.91
8.1.120.0040.00417.54
8.1.110.0050.00217.45
8.1.100.0040.00417.49
8.1.90.0030.00617.50
8.1.80.0000.00717.48
8.1.70.0000.00817.38
8.1.60.0030.00717.48
8.1.50.0030.00517.41
8.1.40.0030.00617.51
8.1.30.0040.00417.65
8.1.20.0000.00817.68
8.1.10.0040.00417.46
8.1.00.0000.00717.48
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00818.44
8.0.270.0030.00616.84
8.0.260.0030.00320.00
8.0.250.0000.00716.98
8.0.240.0000.00816.95
8.0.230.0030.00316.90
8.0.220.0030.00316.75
8.0.210.0030.00316.97
8.0.200.0060.00016.91
8.0.190.0000.00717.03
8.0.180.0000.00816.81
8.0.170.0060.00316.81
8.0.160.0030.00516.94
8.0.150.0040.00416.89
8.0.140.0040.00316.86
8.0.130.0030.00313.30
8.0.120.0000.00716.79
8.0.110.0000.00716.94
8.0.100.0070.00016.86
8.0.90.0060.00316.81
8.0.80.0080.00816.81
8.0.70.0000.01016.71
8.0.60.0000.00816.98
8.0.50.0040.00416.90
8.0.30.0060.01016.96
8.0.20.0130.00717.16
8.0.10.0000.00916.90
8.0.00.0100.01116.79
7.4.330.0000.00615.55
7.4.320.0000.00716.63
7.4.300.0000.00716.61
7.4.290.0040.00416.47
7.4.280.0040.00416.51
7.4.270.0030.00316.57
7.4.260.0060.00013.34
7.4.250.0050.00216.48
7.4.240.0000.00716.51
7.4.230.0000.00816.71
7.4.220.0050.00216.48
7.4.210.0070.01016.63
7.4.200.0070.00016.32
7.4.130.0040.01616.54
7.4.120.0160.00316.44
7.4.110.0090.00916.35
7.4.100.0180.00416.61
7.4.90.0130.00316.42
7.4.80.0090.00919.39
7.4.70.0130.00716.36
7.4.60.0070.01016.61
7.4.50.0030.01316.27
7.4.40.0080.00916.62
7.4.30.0130.00616.36
7.4.20.0090.00916.12
7.4.10.0170.00716.18
7.4.00.0140.00716.53
7.3.330.0030.00316.34
7.3.320.0060.00013.08
7.3.310.0000.00716.31
7.3.300.0070.00016.34
7.3.290.0070.00016.20
7.3.280.0120.00516.25
7.3.260.0110.01116.30
7.3.240.0080.01016.34
7.3.230.0090.00916.39
7.3.210.0040.01316.23
7.3.200.0190.00416.41
7.3.190.0100.01016.52
7.3.180.0080.00816.32
7.3.170.0040.01916.23
7.3.160.0100.00616.01
7.3.150.0100.00616.57
7.3.140.0090.01216.17
7.3.130.0060.00916.36
7.3.120.0120.00916.20
7.3.110.0090.01216.20
7.3.100.0160.00816.11
7.3.90.0080.00816.35
7.3.80.0180.00016.46
7.3.70.0120.00816.15
7.3.60.0120.00916.44
7.3.50.0110.00616.27
7.3.40.0000.01816.20
7.3.30.0110.00816.34
7.3.20.0130.00716.36
7.3.10.0150.00616.20
7.3.00.0170.00716.09
7.2.330.0180.00616.85
7.2.320.0100.01416.70
7.2.310.0090.01316.61
7.2.300.0150.00916.59
7.2.290.0130.00716.27
7.2.280.0070.01316.24
7.2.270.0080.01216.57
7.2.260.0060.01016.45
7.2.250.0060.01216.67
7.2.240.0090.01216.39
7.2.230.0120.00916.18
7.2.220.0100.00916.38
7.2.210.0070.01016.30
7.2.200.0090.01216.26
7.2.190.0140.00816.40
7.2.180.0090.00916.41
7.2.170.0070.01316.55
7.2.160.0030.01316.62
7.2.150.0100.01316.73
7.2.140.0040.01816.72
7.2.130.0100.01016.71
7.2.120.0150.00316.54
7.2.110.0100.00716.42
7.2.100.0070.01116.58
7.2.90.0060.01616.60
7.2.80.0110.01116.61
7.2.70.0100.01416.41
7.2.60.0100.01616.57
7.2.50.0040.01916.46
7.2.40.0100.00716.45
7.2.30.0270.01016.63
7.2.20.0140.00416.61
7.2.10.0060.01516.54
7.2.00.0070.01016.71

preferences:
64.17 ms | 400 KiB | 5 Q