3v4l.org

run code in 300+ PHP versions simultaneously
<?hh type RETTYPE<T> = 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<int>{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.0040.01116.23
8.3.50.0100.00721.99
8.3.40.0040.01118.72
8.3.30.0070.00718.93
8.3.20.0040.00420.34
8.3.10.0060.00323.55
8.3.00.0090.00320.95
8.2.180.0120.00616.38
8.2.170.0110.00422.96
8.2.160.0100.00320.16
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00422.26
8.2.110.0060.00321.18
8.2.100.0080.00319.45
8.2.90.0050.00319.09
8.2.80.0070.00417.97
8.2.70.0060.00317.38
8.2.60.0080.00017.79
8.2.50.0000.00818.07
8.2.40.0000.00819.88
8.2.30.0040.00418.16
8.2.20.0000.00717.54
8.2.10.0040.00417.91
8.2.00.0030.00517.45
8.1.280.0040.01125.92
8.1.270.0080.00023.66
8.1.260.0070.00026.35
8.1.250.0020.00528.09
8.1.240.0060.00322.81
8.1.230.0060.00617.42
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0080.00017.10
8.1.190.0000.00916.88
8.1.180.0030.00518.75
8.1.170.0030.00618.36
8.1.160.0000.00721.93
8.1.150.0050.00218.50
8.1.140.0050.00317.25
8.1.130.0040.00417.66
8.1.120.0000.00717.30
8.1.110.0030.00617.27
8.1.100.0000.00717.31
8.1.90.0040.00417.34
8.1.80.0050.00317.36
8.1.70.0040.00417.18
8.1.60.0030.00617.44
8.1.50.0030.00617.28
8.1.40.0050.00317.38
8.1.30.0050.00317.53
8.1.20.0040.00417.46
8.1.10.0000.00817.51
8.1.00.0040.00417.36
8.0.300.0070.00318.77
8.0.290.0050.00316.58
8.0.280.0030.00318.32
8.0.270.0000.00717.18
8.0.260.0030.00317.18
8.0.250.0000.00716.75
8.0.240.0080.00016.81
8.0.230.0000.00716.71
8.0.220.0000.00716.71
8.0.210.0000.00616.65
8.0.200.0030.00316.81
8.0.190.0070.00016.79
8.0.180.0030.00316.77
8.0.170.0000.00816.72
8.0.160.0090.00016.77
8.0.150.0040.00416.64
8.0.140.0050.00216.69
8.0.130.0030.00313.40
8.0.120.0060.00316.75
8.0.110.0070.00016.72
8.0.100.0050.00216.59
8.0.90.0000.00816.84
8.0.80.0110.00416.74
8.0.70.0050.00316.62
8.0.60.0040.00416.63
8.0.50.0050.00316.59
8.0.30.0130.00617.08
8.0.20.0090.01117.40
8.0.10.0040.00416.75
8.0.00.0100.00716.71
7.4.330.0030.00315.02
7.4.320.0000.00716.46
7.4.300.0030.00316.37
7.4.290.0080.00016.38
7.4.280.0030.00616.45
7.4.270.0070.00016.35
7.4.260.0040.00416.39
7.4.250.0070.00016.38
7.4.240.0030.00316.48
7.4.230.0030.00316.57
7.4.220.0100.01616.50
7.4.210.0090.00816.42
7.4.200.0070.00016.56
7.4.190.0000.00716.27
7.4.160.0160.00016.48
7.4.150.0170.00717.40
7.4.140.0080.00817.86
7.4.130.0130.00516.51
7.4.120.0070.01116.42
7.4.110.0130.00716.43
7.4.100.0140.00416.38
7.4.90.0110.00616.37
7.4.80.0110.00919.39
7.4.70.0090.00616.30
7.4.60.0030.01216.41
7.4.50.0030.00616.05
7.4.40.0090.01216.35
7.4.30.0090.01116.43
7.3.330.0000.00513.18
7.3.320.0000.00512.98
7.3.310.0040.00416.13
7.3.300.0030.00316.12
7.3.290.0130.00716.19
7.3.280.0110.00816.12
7.3.270.0100.01317.40
7.3.260.0040.01316.08
7.3.250.0050.01316.40
7.3.240.0090.00616.26
7.3.230.0140.00316.39
7.3.210.0080.00816.06
7.3.200.0030.01719.39
7.3.190.0130.00616.28
7.3.180.0170.00316.02
7.3.170.0130.00416.27
7.3.160.0060.01016.24
7.2.330.0100.01016.43
7.2.320.0090.00916.32
7.2.310.0130.00716.41
7.2.300.0080.01716.34
7.2.290.0030.01316.55
5.4.290.3600.03319.06
5.4.280.3670.03718.95
5.4.270.3300.04019.20
5.4.260.3370.03018.85
5.4.250.3570.03719.15
5.4.240.4230.03019.16
5.4.230.3330.03719.08
5.4.220.3330.03718.85
5.4.210.3700.04318.99
5.4.200.0000.05319.06
5.4.190.1170.04019.23
5.4.180.3570.03319.23
5.4.170.3670.03718.84
5.4.160.3330.04019.21
5.4.150.3400.03719.13
5.4.140.3570.04016.38
5.4.130.3570.04016.34
5.4.120.3200.03316.32
5.4.110.3500.03316.26
5.4.100.3270.04016.54
5.4.90.3430.02716.45
5.4.80.3470.03016.54
5.4.70.3430.03316.17
5.4.60.3400.03316.42
5.4.50.3370.03016.48
5.4.40.3500.03316.53
5.4.30.3630.03316.34
5.4.20.3570.03716.38
5.4.10.3930.04016.48
5.4.00.3130.04015.75
5.3.290.0070.04014.52
5.3.280.3030.04014.45
5.3.270.3600.03714.55
5.3.260.3630.03314.45
5.3.250.3400.04014.44
5.3.240.3430.03314.65
5.3.230.3470.03014.45
5.3.220.3370.04014.62
5.3.210.3100.03714.54
5.3.200.3370.03314.50
5.3.190.3630.03714.40
5.3.180.3670.03014.66
5.3.170.3570.03714.41
5.3.160.3500.03314.50
5.3.150.3370.03714.66
5.3.140.4200.03714.39
5.3.130.3270.04314.40
5.3.120.3800.03714.57
5.3.110.3300.04314.45
5.3.100.3370.04014.12
5.3.90.3570.03013.89
5.3.80.3470.04013.88
5.3.70.3630.03713.96
5.3.60.3300.02313.95
5.3.50.3770.03713.85
5.3.40.2930.03013.89
5.3.30.2670.03313.74
5.3.20.3000.03313.63
5.3.10.3500.03713.63
5.3.00.3400.03013.68

preferences:
46.51 ms | 400 KiB | 5 Q