3v4l.org

run code in 300+ PHP versions simultaneously
<?hh type RETTYPE<T, Z> = shape('t' => demo<T>, 'z' => demo<Z>); class demoStart<T, Z> { const RET = RETTYPE<T, Z>; } class demo<T> { const RET = T; } type test = shape('demo' => demoStart<1,2>::RET); echo test; //type Point<T> = shape ('x' => T, 'y' => T);

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.01018.52
8.3.50.0170.00421.93
8.3.40.0070.00718.54
8.3.30.0000.01419.10
8.3.20.0000.00720.21
8.3.10.0030.00623.70
8.3.00.0060.00320.98
8.2.180.0090.00616.50
8.2.170.0090.00622.96
8.2.160.0070.00720.39
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.26
8.2.110.0030.00722.25
8.2.100.0060.00617.78
8.2.90.0050.00319.05
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0000.00917.80
8.2.50.0020.00718.07
8.2.40.0000.00819.70
8.2.30.0040.00417.98
8.2.20.0050.00217.54
8.2.10.0040.00417.93
8.2.00.0000.00817.59
8.1.280.0140.00025.92
8.1.270.0030.00624.02
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.03
8.1.230.0080.00418.85
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0000.00817.00
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0050.00321.97
8.1.150.0050.00318.55
8.1.140.0000.00717.30
8.1.130.0030.00317.74
8.1.120.0030.00317.19
8.1.110.0000.00917.36
8.1.100.0040.00417.32
8.1.90.0040.00417.20
8.1.80.0080.00017.21
8.1.70.0030.00317.19
8.1.60.0000.01017.41
8.1.50.0030.00517.29
8.1.40.0000.00817.26
8.1.30.0000.00817.43
8.1.20.0040.00417.38
8.1.10.0040.00417.46
8.1.00.0070.00017.29
8.0.300.0040.00418.77
8.0.290.0050.00317.15
8.0.280.0050.00218.23
8.0.270.0030.00317.16
8.0.260.0000.00617.13
8.0.250.0030.00316.83
8.0.240.0040.00416.88
8.0.230.0030.00616.71
8.0.220.0000.00716.75
8.0.210.0070.00016.70
8.0.200.0000.00616.88
8.0.190.0040.00416.76
8.0.180.0040.00416.66
8.0.170.0040.00416.79
8.0.160.0040.00416.78
8.0.150.0000.00716.70
8.0.140.0000.00816.71
8.0.130.0050.00013.25
8.0.120.0030.00616.74
8.0.110.0000.00716.64
8.0.100.0000.00816.56
8.0.90.0040.00416.79
8.0.80.0130.00716.69
8.0.70.0040.00416.75
8.0.60.0040.00416.80
8.0.50.0050.00316.79
8.0.30.0080.01017.03
8.0.20.0070.01117.40
8.0.10.0000.00716.70
8.0.00.0100.00916.54
7.4.330.0070.00015.00
7.4.320.0000.00616.38
7.4.300.0000.00716.35
7.4.290.0040.00416.50
7.4.280.0070.00016.45
7.4.270.0000.00716.42
7.4.260.0050.00216.37
7.4.250.0000.00716.25
7.4.240.0020.00516.41
7.4.230.0050.00216.57
7.4.220.0150.01116.45
7.4.210.0100.00516.37
7.4.200.0070.00016.48
7.4.190.0040.00416.40
7.4.160.0090.00616.19
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0090.00816.54
7.4.120.0120.00416.31
7.4.110.0090.00916.41
7.4.100.0090.00916.43
7.4.90.0120.00916.55
7.4.80.0060.01219.39
7.4.70.0060.00916.44
7.4.60.0090.00816.29
7.4.50.0040.00416.57
7.4.40.0120.00916.37
7.4.30.0100.00616.53
7.3.330.0050.00012.94
7.3.320.0050.00013.17
7.3.310.0000.00815.98
7.3.300.0000.00616.05
7.3.290.0130.00616.11
7.3.280.0050.01416.10
7.3.270.0070.01417.40
7.3.260.0130.00316.35
7.3.250.0120.00916.45
7.3.240.0090.01216.19
7.3.230.0090.00916.39
7.3.210.0120.00916.30
7.3.200.0030.01319.39
7.3.190.0030.01416.09
7.3.180.0060.00916.13
7.3.170.0140.00616.46
7.3.160.0060.01016.19
7.2.330.0170.00716.55
7.2.320.0130.00316.34
7.2.310.0170.00316.36
7.2.300.0110.01116.38
7.2.290.0070.01116.32
5.4.290.0300.06019.08
5.4.280.0200.04019.07
5.4.270.0230.04719.02
5.4.260.0270.07019.11
5.4.250.0200.05019.19
5.4.240.0130.04319.22
5.4.230.0200.05018.99
5.4.220.0300.04019.30
5.4.210.0200.03718.95
5.4.200.0270.04318.94
5.4.190.0100.04319.13
5.4.180.0200.04019.05
5.4.170.0300.07319.20
5.4.160.0300.05719.07
5.4.150.0300.03719.14
5.4.140.0300.06716.44
5.4.130.0200.05016.50
5.4.120.0270.03716.50
5.4.110.0230.05316.45
5.4.100.0230.06716.45
5.4.90.0170.04016.25
5.4.80.0170.05716.46
5.4.70.0270.03716.44
5.4.60.0300.06316.49
5.4.50.0300.02716.53
5.4.40.0230.03316.43
5.4.30.0230.03716.21
5.4.20.0300.06316.50
5.4.10.0230.03716.42
5.4.00.0400.05715.75
5.3.290.0270.07014.50
5.3.280.0270.07314.49
5.3.270.0300.06714.54
5.3.260.0300.06714.46
5.3.250.0300.04014.55
5.3.240.0270.05314.44
5.3.230.0370.07014.50
5.3.220.0230.04714.42
5.3.210.0230.04314.42
5.3.200.0370.03314.52
5.3.190.0170.04714.38
5.3.180.0270.03314.39
5.3.170.0230.06714.46
5.3.160.0570.03314.50
5.3.150.0200.03714.50
5.3.140.0400.06314.44
5.3.130.0330.05714.63
5.3.120.0230.04314.38
5.3.110.0230.06014.38
5.3.100.0300.07313.88
5.3.90.0270.06313.87
5.3.80.0270.03313.96
5.3.70.0230.04013.79
5.3.60.0300.04713.84
5.3.50.0170.04713.88
5.3.40.0300.07014.03
5.3.30.0400.05313.75
5.3.20.0470.02713.63
5.3.10.0270.03313.43
5.3.00.0300.06713.49

preferences:
39.76 ms | 401 KiB | 5 Q