3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function test(): self; } class Foo implements FooInterface { public function test(): self { 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.0070.00718.15
8.3.50.0170.00317.98
8.3.40.0000.02118.84
8.3.30.0070.00718.45
8.3.20.0080.00019.15
8.3.10.0030.00619.35
8.3.00.0030.00523.54
8.2.180.0080.00816.75
8.2.170.0170.00022.96
8.2.160.0120.00320.30
8.2.150.0030.00624.18
8.2.140.0050.00224.66
8.2.130.0050.00319.79
8.2.120.0040.00426.35
8.2.110.0000.01021.07
8.2.100.0060.00617.75
8.2.90.0030.00517.84
8.2.80.0040.00417.97
8.2.70.0060.00318.04
8.2.60.0030.00617.93
8.2.50.0000.00818.10
8.2.40.0060.00319.17
8.2.30.0000.00719.28
8.2.20.0080.00017.86
8.2.10.0000.00918.00
8.2.00.0040.00419.34
8.1.280.0170.00025.92
8.1.270.0080.00022.15
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0080.00020.75
8.1.230.0070.00422.20
8.1.220.0050.00317.74
8.1.210.0000.00818.79
8.1.200.0000.00817.35
8.1.190.0100.00017.13
8.1.180.0000.00918.10
8.1.170.0000.00818.59
8.1.160.0030.00518.81
8.1.150.0000.00718.80
8.1.140.0000.00817.58
8.1.130.0060.00318.95
8.1.120.0070.00017.29
8.1.110.0100.00017.25
8.1.100.0060.00517.29
8.1.90.0080.00017.45
8.1.80.0000.00717.39
8.1.70.0000.00817.34
8.1.60.0040.00417.50
8.1.50.0040.00717.51
8.1.40.0030.00517.33
8.1.30.0040.00417.48
8.1.20.0040.00417.62
8.1.10.0000.00717.42
8.1.00.0090.00017.45
8.0.300.0000.00719.87
8.0.290.0000.00716.75
8.0.280.0000.00718.47
8.0.270.0030.00317.12
8.0.260.0000.00717.25
8.0.250.0000.00716.93
8.0.240.0030.00316.82
8.0.230.0030.00316.83
8.0.220.0060.00316.82
8.0.210.0000.00616.76
8.0.200.0000.00816.86
8.0.190.0030.00316.83
8.0.180.0080.00016.92
8.0.170.0090.00016.91
8.0.160.0000.00716.78
8.0.150.0030.00516.87
8.0.140.0050.00316.77
8.0.130.0060.00313.28
8.0.120.0060.00316.82
8.0.110.0000.00716.86
8.0.100.0070.00016.74
8.0.90.0070.00016.99
8.0.80.0090.00816.92
8.0.70.0000.00716.87
8.0.60.0000.00716.83
8.0.50.0000.00716.72
8.0.30.0140.00516.98
8.0.20.0130.00917.40
8.0.10.0000.00717.04
8.0.00.0120.00916.73
7.4.330.0040.00015.55
7.4.320.0000.00716.52
7.4.300.0030.00316.43
7.4.290.0060.00016.52
7.4.280.0000.00816.43
7.4.270.0000.00716.54
7.4.260.0030.00316.32
7.4.250.0040.00416.40
7.4.240.0060.00316.41
7.4.230.0070.00016.36
7.4.220.0060.00316.64
7.4.210.0120.00616.57
7.4.200.0070.00016.31
7.4.160.0100.00616.36
7.4.140.0100.00817.86
7.4.130.0080.00916.38
7.4.120.0140.00816.52
7.4.110.0070.01016.61
7.4.100.0080.00916.52
7.4.90.0140.00316.45
7.4.80.0190.00019.39
7.4.70.0070.01016.44
7.4.60.0150.00616.45
7.4.50.0030.01416.46
7.4.40.0150.00416.64
7.4.00.0030.01015.04
7.3.330.0000.00613.16
7.3.320.0030.00313.01
7.3.310.0000.00716.27
7.3.300.0000.00716.28
7.3.290.0030.00316.26
7.3.280.0100.00816.21
7.3.260.0080.01016.44
7.3.240.0120.00716.35
7.3.230.0100.00916.55
7.3.210.0160.00316.19
7.3.200.0040.01216.35
7.3.190.0120.00916.25
7.3.180.0100.00716.45
7.3.170.0070.01016.45
7.3.160.0100.00616.46
7.2.330.0090.00916.58
7.2.320.0120.00916.38
7.2.310.0060.01616.51
7.2.300.0060.01616.30
7.2.290.0070.01116.49
7.2.80.0080.00816.66
7.2.60.0110.01115.71
7.2.50.0110.01415.86
7.2.40.0370.00215.62
7.2.30.0050.01215.70
7.2.20.0230.01115.63
7.2.10.0150.01115.69
7.2.00.0140.00615.74
7.1.200.0070.00715.77
7.1.170.0080.01014.45
7.1.160.0140.00314.73
7.1.150.0080.01314.64
7.1.140.0130.00814.38
7.1.130.0080.01014.55
7.1.120.0100.00814.70
7.1.110.0090.00614.57
7.1.100.0100.01014.75
7.1.90.0110.00514.59
7.1.80.0100.00814.57
7.1.70.0090.00814.76
7.1.60.0260.01032.78
7.1.50.0300.01132.82
7.1.40.0300.00932.50
7.1.30.0250.01432.53
7.1.20.0240.01132.72
7.1.10.0100.00614.74
7.1.00.0150.00514.70

preferences:
57.35 ms | 400 KiB | 5 Q