3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Whatever{ public function getSomething(); } interface Something extends Whatever{ public function getSomething() : Something; } class Test implements Something{ public function getSomething() : Something { return $this; } } $a = new 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.70.0070.00716.58
8.3.60.0040.01416.48
8.3.50.0090.00916.45
8.3.40.0070.00718.68
8.3.30.0120.00318.35
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.190.0120.00618.30
8.2.180.0130.00625.92
8.2.170.0100.01018.96
8.2.160.0060.01222.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0060.00319.15
8.2.100.0070.00417.91
8.2.90.0060.00317.75
8.2.80.0080.00018.64
8.2.70.0060.00317.50
8.2.60.0050.00217.93
8.2.50.0040.00418.05
8.2.40.0060.00318.22
8.2.30.0000.00717.95
8.2.20.0030.00518.07
8.2.10.0000.00719.18
8.2.00.0050.00319.25
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0050.00922.07
8.1.230.0030.00720.92
8.1.220.0050.00217.74
8.1.210.0080.00018.77
8.1.200.0000.00817.13
8.1.190.0080.00017.36
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0000.00718.89
8.1.150.0040.00418.81
8.1.140.0040.00418.89
8.1.130.0040.00420.05
8.1.120.0040.00417.52
8.1.110.0030.00617.44
8.1.100.0040.00417.41
8.1.90.0000.00717.46
8.1.80.0000.00717.45
8.1.70.0070.00017.36
8.1.60.0030.00517.57
8.1.50.0030.00517.52
8.1.40.0110.00017.47
8.1.30.0030.00617.51
8.1.20.0020.00517.65
8.1.10.0000.00717.54
8.1.00.0070.00017.36
8.0.300.0050.00318.77
8.0.290.0050.00316.75
8.0.280.0070.00018.46
8.0.270.0000.00718.00
8.0.260.0000.00618.45
8.0.250.0000.00816.89
8.0.240.0000.00717.02
8.0.230.0000.00716.98
8.0.220.0000.00816.96
8.0.210.0030.00316.87
8.0.200.0070.00016.95
8.0.190.0040.00416.84
8.0.180.0030.00316.89
8.0.170.0000.00916.80
8.0.160.0000.00716.79
8.0.150.0000.00716.74
8.0.140.0000.00716.82
8.0.130.0000.00513.29
8.0.120.0040.00716.82
8.0.110.0000.00816.79
8.0.100.0040.00416.84
8.0.90.0030.00416.96
8.0.80.0030.01216.89
8.0.70.0000.00716.75
8.0.60.0030.00416.89
8.0.50.0040.00416.70
8.0.30.0110.00416.94
8.0.20.0110.00416.94
8.0.10.0080.00616.96
8.0.00.0060.01317.07
7.4.330.0040.00015.55
7.4.320.0060.00016.61
7.4.300.0070.00016.59
7.4.290.0000.00716.39
7.4.280.0080.00316.60
7.4.270.0030.00516.58
7.4.260.0050.00013.32
7.4.250.0000.00716.41
7.4.240.0020.00516.57
7.4.230.0000.00716.31
7.4.220.0040.00316.40
7.4.210.0060.01116.59
7.4.200.0070.00016.60
7.4.160.0100.00316.69
7.4.150.0030.01016.67
7.4.140.0030.01116.39
7.4.130.0130.00616.52
7.4.120.0060.01216.41
7.4.110.0060.00816.33
7.4.100.0070.00716.35
7.4.90.0000.01316.55
7.4.80.0090.00316.39
7.4.70.0030.01216.50
7.4.60.0070.01016.45
7.4.50.0160.00016.16
7.4.40.0000.01416.43
7.4.30.0080.00616.50
7.4.20.0080.00516.34
7.4.10.0140.00016.57
7.4.00.0030.01016.43
7.3.330.0040.00416.23
7.3.320.0050.00013.13
7.3.310.0040.00416.18
7.3.300.0070.00016.18
7.3.290.0070.00716.14
7.3.270.0050.00816.11
7.3.260.0100.00316.16
7.3.250.0110.00716.16
7.3.240.0030.01016.08
7.3.230.0060.00916.16
7.3.220.0030.00916.13
7.3.210.0000.01215.98
7.3.200.0130.00016.15
7.3.190.0030.01016.10
7.3.180.0080.00816.19
7.3.170.0130.00316.13
7.3.160.0060.00616.18
7.3.150.0100.00316.13
7.3.140.0100.00316.17
7.3.130.0030.01016.09
7.3.120.0030.00916.12
7.3.110.0060.00616.06
7.3.100.0060.00616.06
7.3.90.0040.00816.33
7.3.80.0060.01016.05
7.3.70.0100.00316.27
7.3.60.0030.00916.36
7.3.50.0060.00616.40
7.3.40.0030.00916.30
7.3.30.0030.00916.36
7.3.20.0000.01316.40
7.3.10.0030.01016.26
7.3.00.0030.00916.29

preferences:
68.51 ms | 401 KiB | 5 Q