3v4l.org

run code in 300+ PHP versions simultaneously
<?hh type RETTYPE<T> = shape('t' => demo<T>, 'z' => demo<Z>); class demoStart<T> { const RET = RETTYPE<T>; } 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.0070.00716.25
8.3.50.0070.00922.06
8.3.40.0070.00718.81
8.3.30.0110.00718.96
8.3.20.0000.00720.18
8.3.10.0040.00423.42
8.3.00.0040.00420.68
8.2.180.0040.01416.32
8.2.170.0140.00022.96
8.2.160.0100.00720.35
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00722.19
8.2.110.0040.00420.36
8.2.100.0030.00917.78
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0060.00319.95
8.2.30.0070.00017.98
8.2.20.0040.00417.60
8.2.10.0000.00717.79
8.2.00.0050.00517.59
8.1.280.0060.00925.92
8.1.270.0040.00423.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00922.21
8.1.230.0070.00417.45
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0030.00617.10
8.1.180.0080.00018.89
8.1.170.0000.00918.64
8.1.160.0030.00321.84
8.1.150.0040.00418.54
8.1.140.0000.00717.34
8.1.130.0000.00717.62
8.1.120.0000.00817.22
8.1.110.0040.00417.34
8.1.100.0050.00217.37
8.1.90.0040.00417.35
8.1.80.0040.00417.27
8.1.70.0030.00317.20
8.1.60.0000.00817.45
8.1.50.0060.00317.20
8.1.40.0080.00017.24
8.1.30.0030.00517.51
8.1.20.0040.00417.45
8.1.10.0000.00817.35
8.1.00.0070.00017.40
8.0.300.0040.00418.77
8.0.290.0030.00616.58
8.0.280.0030.00318.38
8.0.270.0030.00317.24
8.0.260.0060.00017.05
8.0.250.0000.00716.84
8.0.240.0080.00016.75
8.0.230.0070.00016.83
8.0.220.0000.00716.71
8.0.210.0040.00416.77
8.0.200.0030.00316.79
8.0.190.0060.00316.77
8.0.180.0040.00416.67
8.0.170.0000.00816.79
8.0.160.0000.00816.66
8.0.150.0000.00716.73
8.0.140.0000.00716.59
8.0.130.0000.00513.44
8.0.120.0040.00416.67
8.0.110.0040.00416.75
8.0.100.0050.00316.63
8.0.90.0000.00816.87
8.0.80.0000.01516.67
8.0.70.0000.00716.70
8.0.60.0040.00416.80
8.0.50.0070.00016.83
8.0.30.0130.00616.80
8.0.20.0120.01017.40
8.0.10.0000.00716.74
8.0.00.0100.00716.72
7.4.330.0000.00715.00
7.4.320.0030.00316.35
7.4.300.0060.00016.43
7.4.290.0050.00216.35
7.4.280.0040.00316.46
7.4.270.0000.00816.41
7.4.260.0000.00716.34
7.4.250.0030.00316.28
7.4.240.0050.00216.32
7.4.230.0000.00716.48
7.4.220.0190.00616.38
7.4.210.0060.00916.49
7.4.200.0040.00416.35
7.4.190.0030.00316.62
7.4.160.0040.01216.32
7.4.150.0070.01417.40
7.4.140.0040.01517.86
7.4.130.0070.01216.36
7.4.120.0100.00716.25
7.4.110.0050.01116.40
7.4.100.0140.00316.36
7.4.90.0100.01216.45
7.4.80.0040.01819.39
7.4.70.0090.00616.44
7.4.60.0130.00316.24
7.4.50.0030.00616.32
7.4.40.0130.00316.30
7.4.30.0120.00616.45
7.3.330.0060.00013.25
7.3.320.0050.00012.95
7.3.310.0000.00716.13
7.3.300.0030.00316.14
7.3.290.0120.00316.09
7.3.280.0080.01116.18
7.3.270.0160.00017.40
7.3.260.0100.01016.37
7.3.250.0090.00916.37
7.3.240.0070.01016.28
7.3.230.0030.01316.39
7.3.210.0070.01016.32
7.3.200.0120.00919.39
7.3.190.0090.00916.23
7.3.180.0090.01316.29
7.3.170.0070.01016.40
7.3.160.0120.00416.50
7.2.330.0110.00716.41
7.2.320.0120.00616.38
7.2.310.0070.01116.22
7.2.300.0090.01216.53
7.2.290.0030.01316.56
5.4.290.0430.03319.23
5.4.280.0370.04319.31
5.4.270.0270.04019.24
5.4.260.0370.03019.08
5.4.250.0330.03319.20
5.4.240.0370.04318.88
5.4.230.0300.03319.14
5.4.220.0270.06319.09
5.4.210.0300.03719.08
5.4.200.0230.04319.30
5.4.190.0270.04019.18
5.4.180.0330.04318.98
5.4.170.0430.03319.30
5.4.160.0370.03719.12
5.4.150.0330.03319.06
5.4.140.0270.07316.52
5.4.130.0330.04016.37
5.4.120.0330.04016.39
5.4.110.0300.03716.45
5.4.100.0270.06316.41
5.4.90.0300.03316.46
5.4.80.0270.03716.55
5.4.70.0300.03316.50
5.4.60.0370.03316.38
5.4.50.0330.04016.33
5.4.40.0300.03316.48
5.4.30.0400.03316.48
5.4.20.0300.03316.34
5.4.10.0300.03316.43
5.4.00.0270.04716.11
5.3.290.0330.03314.61
5.3.280.0330.04014.45
5.3.270.0330.05014.45
5.3.260.0230.04314.44
5.3.250.0270.04014.65
5.3.240.0270.04314.44
5.3.230.0300.03714.69
5.3.220.0270.04014.57
5.3.210.0430.03714.41
5.3.200.0370.03014.40
5.3.190.0230.04714.41
5.3.180.0270.04014.40
5.3.170.0230.04314.54
5.3.160.0300.03714.50
5.3.150.0330.03314.50
5.3.140.0270.03714.41
5.3.130.0330.03714.49
5.3.120.0370.04014.63
5.3.110.0330.03314.48
5.3.100.0270.03713.91
5.3.90.0300.03313.86
5.3.80.0270.04013.96
5.3.70.0300.03313.99
5.3.60.0300.03314.04
5.3.50.0370.03313.85
5.3.40.0230.04313.88
5.3.30.0230.04013.78
5.3.20.0330.04013.64
5.3.10.0330.05713.64
5.3.00.0370.04313.63

preferences:
38.66 ms | 401 KiB | 5 Q