3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Identity { /** * Named c * * @param string $identifier * @return self */ public static function createIdentity(): Identity; } class A implements Identity { public static function createIdentity(): Identity { return new self; } } $a = A::createIdentity(); var_dump($a);

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.0120.00618.18
8.3.50.0100.01018.18
8.3.40.0090.00618.67
8.3.30.0070.00718.58
8.3.20.0000.00820.25
8.3.10.0080.00020.41
8.3.00.0040.00421.60
8.2.180.0140.00016.38
8.2.170.0140.00022.96
8.2.160.0100.00722.17
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00721.18
8.2.120.0040.00426.35
8.2.110.0030.00622.09
8.2.100.0060.00617.93
8.2.90.0080.00019.15
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0000.00818.09
8.2.40.0060.00320.39
8.2.30.0040.00419.42
8.2.20.0060.00317.69
8.2.10.0040.00417.94
8.2.00.0000.00718.05
8.1.280.0140.00325.92
8.1.270.0030.00622.01
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.53
8.1.230.0030.00717.77
8.1.220.0030.00517.76
8.1.210.0000.00818.77
8.1.200.0040.00417.25
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0070.00418.65
8.1.160.0040.00420.77
8.1.150.0050.00318.89
8.1.140.0050.00319.45
8.1.130.0030.00317.70
8.1.120.0070.00017.48
8.1.110.0000.00817.37
8.1.100.0000.00717.47
8.1.90.0000.00817.32
8.1.80.0060.00317.29
8.1.70.0000.00717.35
8.1.60.0080.00017.57
8.1.50.0000.00917.52
8.1.40.0000.00817.48
8.1.30.0040.00417.48
8.1.20.0060.00317.52
8.1.10.0070.00417.50
8.1.00.0040.00417.45
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0040.00418.45
8.0.270.0030.00317.31
8.0.260.0030.00317.25
8.0.250.0060.00017.00
8.0.240.0000.00816.83
8.0.230.0030.00316.96
8.0.220.0000.00816.95
8.0.210.0040.00316.76
8.0.200.0000.00616.86
8.0.190.0030.00316.94
8.0.180.0060.00316.82
8.0.170.0000.00716.81
8.0.160.0030.00316.88
8.0.150.0050.00316.86
8.0.140.0030.00316.70
8.0.130.0030.00313.28
8.0.120.0030.00516.78
8.0.110.0070.00016.87
8.0.100.0040.00416.85
8.0.90.0040.00416.71
8.0.80.0000.01516.93
8.0.70.0040.00416.78
8.0.60.0040.00416.81
8.0.50.0040.00416.75
8.0.30.0090.00717.12
8.0.20.0110.01217.40
8.0.10.0050.00217.00
8.0.00.0070.01316.69
7.4.330.0050.00016.74
7.4.320.0030.00316.41
7.4.300.0000.00616.52
7.4.290.0030.00316.61
7.4.280.0040.00416.62
7.4.270.0030.00616.44
7.4.260.0000.00816.39
7.4.250.0040.00416.57
7.4.240.0030.00316.61
7.4.230.0070.00016.41
7.4.220.0130.00916.54
7.4.210.0060.01016.54
7.4.200.0000.00716.34
7.4.160.0090.00616.45
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0090.00916.45
7.4.120.0150.00516.61
7.4.110.0070.01016.54
7.4.100.0120.01216.32
7.4.90.0070.01016.52
7.4.80.0130.00619.39
7.4.70.0100.00616.46
7.4.60.0000.01916.52
7.4.50.0090.00916.25
7.4.40.0100.00716.33
7.4.30.0060.01616.53
7.4.00.0030.00614.85
7.3.330.0000.00613.02
7.3.320.0030.00213.31
7.3.310.0070.00016.06
7.3.300.0050.00216.25
7.3.290.0030.00316.16
7.3.280.0040.01316.24
7.3.270.0060.01217.40
7.3.260.0140.00616.28
7.3.250.0080.00916.32
7.3.240.0000.01816.38
7.3.230.0070.01316.39
7.3.210.0090.01216.43
7.3.200.0110.00616.14
7.3.190.0050.01216.56
7.3.180.0080.00816.05
7.3.170.0060.01216.20
7.3.160.0100.00716.18
7.2.330.0170.00016.42
7.2.320.0110.00516.70
7.2.310.0060.01216.57
7.2.300.0180.00616.61
7.2.290.0090.00916.67
7.2.60.0030.01316.59
7.2.00.0060.00319.27
7.1.200.0030.01015.80
7.1.100.0030.01218.10
7.1.70.0000.00717.17
7.1.60.0100.01319.19
7.1.50.0070.01416.99
7.1.00.0000.08022.24
7.0.200.0210.01214.76
7.0.60.0170.08021.75
7.0.50.0030.04017.84
7.0.40.0130.07720.23
7.0.30.0330.08320.29
7.0.20.0370.06720.15
7.0.10.0070.04320.24
7.0.00.0100.08320.23
5.6.280.0030.03020.99
5.6.210.0100.08320.72
5.6.200.0070.04318.24
5.6.190.0070.05020.58
5.6.180.0270.05020.63
5.6.170.0400.06720.45
5.6.160.0230.06320.54
5.6.150.0100.07718.13
5.6.140.0100.05018.24
5.6.130.0070.04018.13
5.6.120.0170.07320.97
5.6.110.0170.07720.99
5.6.100.0030.08721.01
5.6.90.0270.06721.07
5.6.80.0070.06320.39
5.5.350.0300.05020.49
5.5.340.0130.07317.98
5.5.330.0100.04020.40
5.5.320.0600.07020.36
5.5.310.0300.06720.34
5.5.300.0070.06718.09
5.5.290.0100.03717.99
5.5.280.0030.04020.69
5.5.270.0070.08720.87
5.5.260.0100.07020.80
5.5.250.0170.08020.71
5.5.240.0030.07720.19

preferences:
88.06 ms | 401 KiB | 5 Q