3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); abstract class InterfaceA { abstract function beMyself(): self; } class ClassA extends InterfaceA { function beMyself(): self { return $this; } } var_dump((new ClassA)->beMyself());

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.40.0140.00418.67
8.3.30.0110.00318.38
8.3.20.0040.00420.34
8.3.10.0040.00423.66
8.3.00.0000.00819.84
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00619.34
8.2.120.0050.00326.35
8.2.110.0070.01422.13
8.2.100.0040.00717.80
8.2.90.0000.00818.95
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0080.00017.80
8.2.50.0060.00318.07
8.2.40.0030.00522.20
8.2.30.0000.00820.62
8.2.20.0030.00517.61
8.2.10.0000.00718.00
8.2.00.0040.00417.84
8.1.270.0040.00420.32
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0080.00417.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0030.00518.65
8.1.160.0000.00720.55
8.1.150.0000.00718.77
8.1.140.0040.00419.38
8.1.130.0040.00417.59
8.1.120.0000.00717.32
8.1.110.0000.00717.30
8.1.100.0000.00817.30
8.1.90.0040.00417.41
8.1.80.0040.00417.37
8.1.70.0000.00717.31
8.1.60.0040.00417.51
8.1.50.0040.00417.31
8.1.40.0050.00217.48
8.1.30.0000.00817.46
8.1.20.0080.00017.52
8.1.10.0050.00317.50
8.1.00.0000.00717.37
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0000.00718.25
8.0.270.0030.00317.24
8.0.260.0040.00417.14
8.0.250.0040.00416.81
8.0.240.0000.00816.86
8.0.230.0030.00316.82
8.0.220.0000.00916.82
8.0.210.0040.00416.87
8.0.200.0060.00016.93
8.0.190.0060.00616.86
8.0.180.0040.00416.86
8.0.170.0000.00816.88
8.0.160.0040.00416.80
8.0.150.0000.00716.77
8.0.140.0000.00716.65
8.0.130.0040.00413.23
8.0.120.0040.00416.71
8.0.110.0040.00416.79
8.0.100.0000.00716.86
8.0.90.0000.00716.73
8.0.80.0150.00016.88
8.0.70.0050.00316.94
8.0.60.0000.00716.70
8.0.50.0000.00716.70
8.0.30.0070.01317.08
8.0.20.0110.00917.40
8.0.10.0040.00416.91
8.0.00.0120.00916.58
7.4.330.0050.00016.82
7.4.320.0030.00316.48
7.4.300.0000.00616.33
7.4.290.0070.00016.45
7.4.280.0110.00016.53
7.4.270.0000.00716.46
7.4.260.0040.00416.42
7.4.250.0030.00416.48
7.4.240.0030.00316.54
7.4.230.0070.00016.32
7.4.220.0180.00616.61
7.4.210.0070.00916.45
7.4.200.0040.00416.54
7.4.160.0040.01116.51
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0090.00816.42
7.4.120.0110.00616.38
7.4.110.0160.00016.68
7.4.100.0030.01316.33
7.4.90.0110.00616.51
7.4.80.0060.01619.39
7.4.70.0110.00516.41
7.4.60.0040.01316.45
7.4.50.0120.00316.50
7.4.40.0030.01416.52
7.4.30.0130.00916.22
7.3.330.0050.00013.16
7.3.320.0000.00513.24
7.3.310.0000.00716.28
7.3.300.0000.00716.23
7.3.290.0000.00616.15
7.3.280.0100.00616.27
7.3.270.0090.00917.40
7.3.260.0100.00716.19
7.3.250.0110.00716.18
7.3.240.0080.00916.35
7.3.230.0090.01316.44
7.3.210.0060.01016.19
7.3.200.0160.00316.25
7.3.190.0120.00616.23
7.3.180.0090.01416.30
7.3.170.0070.01016.27
7.3.160.0040.01216.18
7.2.330.0070.01416.41
7.2.320.0110.01116.25
7.2.310.0100.00616.18
7.2.300.0030.01316.24
7.2.290.0100.00716.55
7.0.00.0230.06320.16
5.6.160.0100.05720.52
5.6.150.0100.07718.18
5.6.140.0130.06318.16
5.6.130.0000.05318.14
5.6.120.0000.08721.12
5.6.110.0030.09021.02
5.6.100.0100.03721.13
5.6.90.0170.07321.08
5.6.80.0030.08720.44
5.5.300.0070.03318.07
5.5.290.0030.04017.95
5.5.280.0100.08020.68
5.5.270.0070.05020.78
5.5.260.0200.07720.74
5.5.250.0170.07020.47
5.5.240.4170.04020.05

preferences:
45.43 ms | 400 KiB | 5 Q