3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { public function b() : mixed; } final class X implements A { public function b() : object { return new stdClass(); } } final class Y implements A { public function b() : void { } }

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.130.0110.00416.59
8.3.120.0070.00720.67
8.3.110.0070.01420.94
8.3.100.0110.00824.06
8.3.90.0040.00426.77
8.3.80.0090.00018.31
8.3.70.0060.00916.59
8.3.60.0110.00416.75
8.3.50.0140.00716.50
8.3.40.0040.01118.44
8.3.30.0070.00718.49
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.250.0120.00316.46
8.2.240.0090.00918.60
8.2.230.0030.01322.58
8.2.220.0040.00437.54
8.2.210.0050.00326.77
8.2.200.0050.00516.50
8.2.190.0140.00416.58
8.2.180.0230.00325.92
8.2.170.0090.00918.79
8.2.160.0110.00722.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0100.00017.93
8.2.110.0000.00920.39
8.2.100.0060.00617.78
8.2.90.0000.00817.72
8.2.80.0040.00422.03
8.2.70.0030.00517.38
8.2.60.0080.00017.50
8.2.50.0050.00317.55
8.2.40.0110.00018.07
8.2.30.0070.00018.00
8.2.20.0050.00217.90
8.2.10.0040.00419.14
8.2.00.0070.00019.17
8.1.300.0050.00318.16
8.1.290.0060.00330.84
8.1.280.0130.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00020.55
8.1.230.0070.00322.26
8.1.220.0080.00017.74
8.1.210.0040.00418.79
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0070.00318.80
8.1.150.0030.00718.81
8.1.140.0050.00218.69
8.1.130.0070.00020.06
8.1.120.0040.00417.44
8.1.110.0040.00417.39
8.1.100.0040.00417.34
8.1.90.0070.00017.29
8.1.80.0000.00817.37
8.1.70.0070.00017.44
8.1.60.0040.00417.49
8.1.50.0030.00517.47
8.1.40.0080.00017.37
8.1.30.0000.00817.60
8.1.20.0000.00917.47
8.1.10.0060.00317.39
8.1.00.0060.00317.28
8.0.300.0070.00019.86
8.0.290.0050.00316.75
8.0.280.0040.00418.29
8.0.270.0080.00018.01
8.0.260.0000.00618.41
8.0.250.0000.00816.86
8.0.240.0030.00316.88
8.0.230.0060.00316.86
8.0.220.0000.00716.90
8.0.210.0000.00716.79
8.0.200.0030.00316.95
8.0.190.0000.00816.85
8.0.180.0000.00716.83
8.0.170.0060.00316.89
8.0.160.0040.00416.77
8.0.150.0000.00716.86
8.0.140.0040.00416.85
8.0.130.0000.00613.27
8.0.120.0030.00516.76
8.0.110.0080.00016.99
8.0.100.0040.00417.00
8.0.90.0040.00416.70
8.0.80.0110.00716.90
8.0.70.0030.00316.74
8.0.60.0040.00416.92
8.0.50.0070.00016.88
8.0.30.0220.01716.83
8.0.20.0250.01016.88
8.0.10.0240.01117.05
8.0.00.0210.01417.01
7.4.330.0000.00515.55
7.4.320.0020.00516.50
7.4.300.0040.00416.43
7.4.290.0040.00416.36
7.4.280.0040.00416.55
7.4.270.0000.00716.32
7.4.260.0030.00313.17
7.4.250.0070.00016.49
7.4.240.0000.00616.42
7.4.230.0060.00316.57
7.4.220.0030.00316.57
7.4.210.0080.01016.56
7.4.200.0040.00416.34
7.4.160.0170.01716.61
7.4.150.0690.00816.35
7.4.140.0250.00816.26
7.4.130.0190.00816.32
7.4.120.0220.01116.29
7.4.110.0210.00816.22
7.4.100.0240.00916.50
7.4.90.0240.01416.46
7.4.80.0270.00616.29
7.4.70.0200.01216.22
7.4.60.0440.01116.31
7.4.50.0210.01116.35
7.4.40.0240.00716.30
7.4.30.0310.00816.24
7.4.20.0300.00416.38
7.4.10.0250.00716.39
7.4.00.0280.00016.28
7.3.330.0080.00016.04
7.3.320.0030.00313.14
7.3.310.0000.00716.20
7.3.300.0030.00316.20
7.3.290.0090.00816.19
7.3.280.0290.01716.16
7.3.270.0280.00616.19
7.3.260.0190.01616.19
7.3.250.0210.00916.22
7.3.240.0200.01216.23
7.3.230.0190.00916.19
7.3.220.0200.01416.10
7.3.210.0370.00416.13
7.3.200.0240.00916.21
7.3.190.0170.01016.16
7.3.180.0330.00616.18
7.3.170.0260.00516.20
7.3.160.0190.01316.18
7.3.150.0300.00716.23
7.3.140.0210.00816.20
7.3.130.0310.00016.16
7.3.120.0320.00716.08
7.3.110.0230.01616.07
7.3.100.0160.01616.13
7.3.90.0170.01016.41
7.3.80.0240.00316.13
7.3.70.0210.00516.23
7.3.60.0170.00716.38
7.3.50.0370.00016.31
7.3.40.0200.01816.35
7.3.30.0250.00616.31
7.3.20.0280.00416.38
7.3.10.0130.01316.36
7.3.00.0240.00616.30

preferences:
26.69 ms | 403 KiB | 5 Q