3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function test(): FooInterface; } class Foo implements FooInterface { public function test(): Foo { echo 'test'; return $this; } } (new Foo())->test();

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.00316.50
8.3.50.0040.01418.05
8.3.40.0090.00618.66
8.3.30.0060.00918.48
8.3.20.0080.00018.84
8.3.10.0030.00521.08
8.3.00.0000.00723.44
8.2.180.0100.01018.31
8.2.170.0140.00422.96
8.2.160.0060.00920.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00019.64
8.2.120.0030.00626.35
8.2.110.0060.00321.14
8.2.100.0000.01117.78
8.2.90.0030.00617.90
8.2.80.0040.00417.97
8.2.70.0090.00018.05
8.2.60.0050.00317.91
8.2.50.0060.00318.10
8.2.40.0090.00019.25
8.2.30.0080.00019.30
8.2.20.0040.00418.05
8.2.10.0040.00417.91
8.2.00.0040.00419.25
8.1.280.0120.00625.92
8.1.270.0070.00022.02
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00421.23
8.1.230.0090.00317.45
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0000.00917.22
8.1.180.0050.00318.10
8.1.170.0000.00818.50
8.1.160.0000.00718.77
8.1.150.0060.00318.69
8.1.140.0080.00017.63
8.1.130.0000.00918.98
8.1.120.0080.00017.43
8.1.110.0030.00517.43
8.1.100.0140.00017.41
8.1.90.0000.00917.44
8.1.80.0070.00017.40
8.1.70.0070.00317.22
8.1.60.0000.00817.52
8.1.50.0080.00017.39
8.1.40.0030.00517.48
8.1.30.0030.00617.56
8.1.20.0040.00417.62
8.1.10.0060.00317.53
8.1.00.0040.00417.43
8.0.300.0070.00020.04
8.0.290.0000.00816.75
8.0.280.0040.00418.52
8.0.270.0030.00317.20
8.0.260.0030.00317.23
8.0.250.0070.00016.85
8.0.240.0000.00716.84
8.0.230.0000.00816.92
8.0.220.0070.00016.85
8.0.210.0050.00316.88
8.0.200.0030.00316.93
8.0.190.0040.00416.96
8.0.180.0070.00316.93
8.0.170.0000.00916.91
8.0.160.0020.00516.87
8.0.150.0040.00416.89
8.0.140.0030.00616.90
8.0.130.0030.00313.28
8.0.120.0040.00416.80
8.0.110.0000.00716.99
8.0.100.0040.00416.75
8.0.90.0040.00416.91
8.0.80.0080.00916.90
8.0.70.0070.00016.75
8.0.60.0040.00416.77
8.0.50.0000.00716.80
8.0.30.0130.00416.98
8.0.20.0090.00917.40
8.0.10.0000.00816.86
8.0.00.0130.00516.53
7.4.330.0020.00215.55
7.4.320.0060.00016.53
7.4.300.0000.00616.29
7.4.290.0000.00716.54
7.4.280.0070.00416.42
7.4.270.0090.00016.43
7.4.260.0030.00316.48
7.4.250.0040.00416.48
7.4.240.0050.00316.44
7.4.230.0030.00316.50
7.4.220.0080.00016.32
7.4.210.0080.00916.44
7.4.200.0080.00016.27
7.4.160.0100.00616.51
7.4.140.0120.00817.86
7.4.130.0120.00616.41
7.4.120.0100.00716.42
7.4.110.0130.00316.42
7.4.100.0030.01716.34
7.4.90.0090.01416.24
7.4.80.0090.01219.39
7.4.70.0030.01316.40
7.4.60.0100.00616.51
7.4.50.0070.01016.64
7.4.40.0130.00916.29
7.4.00.0140.00415.05
7.3.330.0050.00013.09
7.3.320.0000.00513.05
7.3.310.0040.00416.13
7.3.300.0050.00216.24
7.3.290.0030.00316.19
7.3.280.0050.00716.24
7.3.260.0080.01016.28
7.3.240.0100.01116.35
7.3.230.0130.00316.17
7.3.210.0130.00916.29
7.3.200.0040.01416.31
7.3.190.0110.00516.50
7.3.180.0060.01216.41
7.3.170.0100.00716.40
7.3.160.0040.01716.18
7.2.330.0040.01416.55
7.2.320.0070.01716.58
7.2.310.0100.01316.48
7.2.300.0130.00716.61
7.2.290.0170.00616.47
7.2.60.0040.01116.70
7.2.50.0110.00316.62
7.2.40.0100.00716.55
7.2.30.0100.00316.41
7.2.20.0000.01416.69
7.2.10.0000.01316.79
7.2.00.0040.00916.36
7.1.200.0040.00415.70
7.1.170.0030.00915.59
7.1.160.0060.00615.21
7.1.150.0040.00815.73
7.1.140.0060.00615.12
7.1.130.0060.00615.60
7.1.120.0100.00315.68
7.1.110.0040.01215.39
7.1.100.0000.01415.70
7.1.90.0120.00015.38
7.1.80.0030.00915.48
7.1.70.0000.01215.59
7.1.60.0250.01033.66
7.1.50.0170.01733.65
7.1.40.0270.00733.69
7.1.30.0170.01633.46
7.1.20.0270.00733.63
7.1.10.0060.00615.70
7.1.00.0040.00715.58

preferences:
54.41 ms | 401 KiB | 5 Q