3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function getSomething(): self { return $this; } } class B extends A { public function getSomething(): self { return new A(); } } (new B)->getSomething();

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.01316.75
8.3.50.0090.00618.14
8.3.40.0150.00420.32
8.3.30.0120.00318.71
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0120.00325.92
8.2.170.0120.00618.61
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00426.35
8.2.110.0130.01020.93
8.2.100.0090.00317.92
8.2.90.0080.00019.21
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0050.00318.05
8.2.50.0040.00418.07
8.2.40.0030.00519.88
8.2.30.0000.00718.01
8.2.20.0040.00417.96
8.2.10.0000.00719.23
8.2.00.0050.00219.05
8.1.280.0100.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0150.00421.25
8.1.230.0040.00717.83
8.1.220.0050.00317.74
8.1.210.0070.00318.77
8.1.200.0030.00617.23
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0050.00318.57
8.1.160.0000.00818.79
8.1.150.0080.00018.66
8.1.140.0030.00318.70
8.1.130.0000.00720.11
8.1.120.0000.00717.34
8.1.110.0060.00317.38
8.1.100.0000.00717.30
8.1.90.0040.00417.31
8.1.80.0080.00317.34
8.1.70.0000.00717.32
8.1.60.0060.00317.50
8.1.50.0000.00717.46
8.1.40.0080.00017.43
8.1.30.0000.00817.52
8.1.20.0030.00717.47
8.1.10.0000.00817.37
8.1.00.0040.00417.29
8.0.300.0070.00018.77
8.0.290.0080.00016.63
8.0.280.0070.00018.29
8.0.270.0070.00017.90
8.0.260.0030.00318.40
8.0.250.0030.00316.83
8.0.240.0080.00016.88
8.0.230.0030.00316.99
8.0.220.0070.00016.88
8.0.210.0040.00416.85
8.0.200.0020.00516.96
8.0.190.0040.00416.82
8.0.180.0070.00016.81
8.0.170.0000.00816.89
8.0.160.0040.00416.87
8.0.150.0030.00616.89
8.0.140.0080.00016.85
8.0.130.0060.00013.27
8.0.120.0040.00416.87
8.0.110.0000.00716.82
8.0.100.0000.00716.90
8.0.90.0070.00016.84
8.0.80.0080.00716.84
8.0.70.0030.00616.76
8.0.60.0000.00716.92
8.0.50.0000.00716.75
8.0.30.0170.00016.94
8.0.20.0100.00716.97
8.0.10.0070.00017.07
8.0.00.0140.00316.65
7.4.330.0020.00315.55
7.4.320.0030.00316.38
7.4.300.0030.00316.35
7.4.290.0000.00816.37
7.4.280.0040.00416.46
7.4.270.0000.00716.42
7.4.260.0030.00313.20
7.4.250.0030.00316.48
7.4.240.0000.00716.42
7.4.230.0080.00016.27
7.4.220.0000.00716.49
7.4.210.0090.00716.44
7.4.200.0000.00816.55
7.4.130.0090.01216.44
7.4.120.0150.00916.57
7.4.110.0090.00916.40
7.4.100.0110.00716.40
7.4.90.0110.01216.30
7.4.80.0150.00916.41
7.4.70.0170.01216.25
7.4.60.0170.01016.54
7.4.50.0130.01016.32
7.4.40.0130.00816.14
7.4.30.0190.00616.49
7.4.20.0180.00416.54
7.4.10.0060.01616.39
7.4.00.0070.01016.41
7.3.330.0070.00016.04
7.3.320.0000.00513.22
7.3.310.0000.00716.08
7.3.300.0040.00416.16
7.3.290.0090.00916.22
7.3.260.0100.00716.18
7.3.230.0070.01116.29
7.3.220.0150.01116.21
7.3.210.0110.01116.13
7.3.200.0070.01716.30
7.3.190.0090.01316.39
7.3.180.0160.00616.23
7.3.170.0110.01016.26
7.3.160.0080.01316.21
7.3.150.0100.01016.18
7.3.140.0080.01316.23
7.3.130.0060.01316.32
7.3.120.0080.01215.94
7.3.110.0170.00416.29
7.3.100.0120.00816.28
7.3.90.0050.01516.37
7.3.80.0150.00616.26
7.3.70.0030.01516.13
7.3.60.0060.01316.02
7.3.50.0080.01216.20
7.3.40.0170.00316.24
7.3.30.0130.01016.18
7.3.20.0370.00916.32
7.3.10.0230.01016.23
7.3.00.0160.00416.25
7.2.330.0080.01616.45
7.2.320.0110.01316.54
7.2.310.0070.01616.15
7.2.300.0080.02016.20
7.2.290.0160.00616.32
7.2.280.0140.00716.30
7.2.270.0100.01616.34
7.2.260.0050.01516.16
7.2.250.0070.01216.20
7.2.240.0130.00816.39
7.2.230.0100.01416.54
7.2.220.0040.01616.57
7.2.210.0130.00716.45
7.2.200.0100.01016.43
7.2.190.0080.01516.29
7.2.180.0130.01316.49
7.2.170.0110.01116.29
7.2.160.0150.01016.27
7.2.150.0200.00316.43
7.2.140.0110.00916.45
7.2.130.0090.01316.19
7.2.120.0120.00916.51
7.2.110.0170.00816.39
7.2.100.0170.01016.55
7.2.90.0120.00916.53
7.2.80.0030.02116.48
7.2.70.0120.01216.55
7.2.60.0180.01116.44
7.2.50.0120.00916.50
7.2.40.0110.01816.54
7.2.30.0120.00816.45
7.2.20.0160.00816.37
7.2.10.0140.00716.36
7.2.00.0130.00916.29

preferences:
68.17 ms | 400 KiB | 5 Q