3v4l.org

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

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.4.10.0060.00317.51
8.3.140.0000.00816.57
8.3.130.0040.00418.28
8.3.120.0070.00718.81
8.3.110.0000.01020.94
8.3.100.0050.00318.59
8.3.90.0060.00626.77
8.3.80.0090.00018.21
8.3.70.0140.00416.58
8.3.60.0200.00018.43
8.3.50.0030.00924.59
8.3.40.0040.01118.57
8.3.30.0110.00418.46
8.3.20.0040.00420.52
8.3.10.0020.00520.02
8.3.00.0080.00020.64
8.2.250.0050.00316.41
8.2.240.0080.00817.08
8.2.230.0090.00022.58
8.2.220.0000.00924.06
8.2.210.0070.01026.77
8.2.200.0060.00316.63
8.2.190.0100.00716.63
8.2.180.0070.01418.42
8.2.170.0160.00618.82
8.2.160.0140.00322.96
8.2.150.0040.00424.18
8.2.140.0000.01024.66
8.2.130.0070.00026.16
8.2.120.0070.00020.82
8.2.110.0030.00722.13
8.2.100.0090.00317.64
8.2.90.0030.00517.63
8.2.80.0000.00718.73
8.2.70.0080.00017.50
8.2.60.0030.00718.09
8.2.50.0030.00618.10
8.2.40.0050.00319.26
8.2.30.0000.00819.11
8.2.20.0080.00017.98
8.2.10.0000.00920.81
8.2.00.0050.00219.16
8.1.300.0090.00918.11
8.1.290.0000.01118.88
8.1.280.0110.00725.92
8.1.270.0040.00422.52
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.97
8.1.230.0040.00822.75
8.1.220.0060.00318.51
8.1.210.0030.00518.77
8.1.200.0080.00017.00
8.1.190.0000.00916.98
8.1.180.0080.00019.04
8.1.170.0030.00618.52
8.1.160.0020.00518.85
8.1.150.0040.00418.79
8.1.140.0030.00522.13
8.1.130.0030.00320.06
8.1.120.0050.00317.37
8.1.110.0000.00717.33
8.1.100.0040.00417.35
8.1.90.0030.00417.35
8.1.80.0070.00017.37
8.1.70.0000.00717.18
8.1.60.0040.00417.52
8.1.50.0000.00917.46
8.1.40.0040.00417.39
8.1.30.0060.00217.55
8.1.20.0090.00617.48
8.1.10.0080.00817.39
8.1.00.0120.00417.36
8.0.300.0000.00719.77
8.0.290.0080.00016.63
8.0.280.0040.00418.25
8.0.270.0030.00316.75
8.0.260.0060.00020.00
8.0.250.0000.00816.93
8.0.240.0000.00616.93
8.0.230.0000.00716.91
8.0.220.0000.00716.86
8.0.210.0070.00016.71
8.0.200.0060.00016.84
8.0.190.0030.00316.86
8.0.180.0040.00416.72
8.0.170.0090.00016.85
8.0.160.0100.00516.79
8.0.150.0070.00716.72
8.0.140.0120.00116.71
8.0.130.0130.00014.99
8.0.120.0110.00416.79
8.0.110.0080.00616.81
8.0.100.0100.00216.71
8.0.90.0080.00516.71
8.0.80.0090.00916.78
8.0.70.0120.00716.78
8.0.60.0050.00716.76
8.0.50.0100.00716.63
8.0.30.0170.00516.81
8.0.20.0150.00516.93
8.0.10.0140.00816.81
8.0.00.0110.00916.83
7.4.330.0000.00415.55
7.4.320.0030.00316.36
7.4.300.0070.00016.41
7.4.290.0030.00516.56
7.4.280.0240.00316.34
7.4.270.0090.00716.46
7.4.260.0070.00314.83
7.4.250.0040.00716.43
7.4.240.0070.00216.49
7.4.230.0080.00516.45
7.4.220.0070.00316.54
7.4.210.0060.01116.39
7.4.200.0120.00716.40
7.4.190.0120.00816.45
7.4.180.0130.00616.46
7.4.160.0110.00716.43
7.4.150.0130.00916.40
7.4.140.0110.00716.21
7.4.130.0130.00716.24
7.4.120.0100.00916.37
7.4.110.0100.01016.40
7.4.100.0110.00916.28
7.4.90.0070.01116.40
7.4.80.0130.00517.04
7.4.70.0090.00916.44
7.4.60.0120.00616.41
7.4.50.0080.01016.37
7.4.40.0080.01116.37
7.4.30.0110.00716.28
7.4.20.0100.00816.31
7.4.10.0090.00815.83
7.4.00.0080.00815.18
7.3.330.0080.00616.26
7.3.320.0110.00214.67
7.3.310.0090.00516.12
7.3.300.0110.00316.22
7.3.290.0090.00916.21
7.3.280.0110.00616.20
7.3.270.0180.00316.03
7.3.260.0090.00916.35
7.3.250.0090.01016.04
7.3.240.0120.00716.28
7.3.230.0110.00716.24
7.3.220.0100.00816.29
7.3.210.0130.00616.22
7.3.200.0080.01116.25
7.3.190.0090.01116.30
7.3.180.0110.00716.31
7.3.170.0150.00716.21
7.3.160.0110.00816.23
7.3.150.0120.00716.21
7.3.140.0120.00616.25
7.3.130.0090.00815.79
7.3.120.0090.00815.05
7.3.110.0090.00815.01
7.3.100.0080.00914.99
7.3.90.0080.00815.00
7.3.80.0080.00815.00
7.3.70.0090.00814.96
7.3.60.0090.00714.97
7.3.50.0090.00814.97
7.3.40.0100.00714.95
7.3.30.0090.00814.96
7.3.20.0140.00815.13
7.3.10.0100.00815.12
7.3.00.0120.00815.14
7.2.340.0180.00816.27
7.2.330.0190.00816.41
7.2.320.0210.00916.33
7.2.310.0170.00816.27
7.2.300.0200.00616.28
7.2.290.0140.00816.38
7.2.280.0160.00516.38
7.2.270.0120.00916.28
7.2.260.0110.00815.86
7.2.250.0090.00815.15
7.2.240.0100.00715.08
7.2.230.0090.00915.14
7.2.220.0100.00815.14
7.2.210.0090.00815.13
7.2.200.0090.00915.12
7.2.190.0100.00815.09
7.2.180.0100.00815.12
7.2.170.0090.00815.09
7.2.160.0110.00715.64
7.2.150.0120.00915.77
7.2.140.0110.00815.78
7.2.130.0100.00915.81
7.2.120.0110.00915.80
7.2.110.0110.00915.82
7.2.100.0100.00815.82
7.2.90.0120.00815.81
7.2.80.0110.00915.77
7.2.70.0110.00815.82
7.2.60.0120.00715.77
7.2.50.0100.00915.79
7.2.40.0160.00815.82
7.2.30.0120.00915.85
7.2.20.0110.00915.82
7.2.10.0110.00915.78
7.2.00.0100.00915.79

preferences:
29.46 ms | 403 KiB | 5 Q