3v4l.org

run code in 300+ PHP versions simultaneously
<?hh type RETTYPE<T> = shape('t' => demo<T>, 'z' => demo<T>); class demoStart<T> { const RET = RETTYPE<T>{1,2}; } class demo<T> { const RET = T; } type test = shape('demo' => demoStart<int>{1,2}); 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.70.0040.01416.25
8.3.60.0080.00616.38
8.3.50.0230.00922.05
8.3.40.0040.01118.52
8.3.30.0040.01118.93
8.3.20.0070.00020.09
8.3.10.0000.00923.57
8.3.00.0080.00018.96
8.2.180.0110.00416.32
8.2.170.0120.00322.96
8.2.160.0030.01020.44
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00022.24
8.2.110.0000.00822.28
8.2.100.0080.00417.78
8.2.90.0050.00219.05
8.2.80.0000.00817.97
8.2.70.0060.00317.38
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0000.00718.11
8.2.20.0040.00417.45
8.2.10.0050.00217.81
8.2.00.0080.00017.54
8.1.280.0040.01125.92
8.1.270.0080.00023.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0030.00719.09
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0030.00517.11
8.1.180.0080.00018.76
8.1.170.0060.00318.52
8.1.160.0040.00421.92
8.1.150.0020.00518.50
8.1.140.0040.00417.35
8.1.130.0000.00717.70
8.1.120.0000.00717.33
8.1.110.0000.01117.28
8.1.100.0030.00517.28
8.1.90.0040.00417.37
8.1.80.0070.00017.29
8.1.70.0030.00317.18
8.1.60.0060.00317.44
8.1.50.0000.00817.35
8.1.40.0000.00817.43
8.1.30.0040.00417.41
8.1.20.0000.00817.39
8.1.10.0050.00317.29
8.1.00.0030.00517.26
8.0.300.0030.00418.77
8.0.290.0000.00817.03
8.0.280.0070.00018.36
8.0.270.0000.00717.22
8.0.260.0060.00017.19
8.0.250.0030.00316.82
8.0.240.0060.00316.78
8.0.230.0000.00716.68
8.0.220.0000.00716.79
8.0.210.0000.00716.77
8.0.200.0030.00316.77
8.0.190.0060.00316.70
8.0.180.0040.00416.66
8.0.170.0050.00316.83
8.0.160.0050.00516.80
8.0.150.0000.00816.61
8.0.140.0030.00316.63
8.0.130.0000.00513.39
8.0.120.0050.00316.61
8.0.110.0080.00016.64
8.0.100.0030.00516.58
8.0.90.0040.00416.77
8.0.80.0070.01016.63
8.0.70.0000.00716.79
8.0.60.0070.00016.75
8.0.50.0040.00416.54
8.0.30.0110.00816.96
8.0.20.0090.00917.40
8.0.10.0050.00216.72
8.0.00.0060.01216.64
7.4.330.0030.00415.00
7.4.320.0070.00016.50
7.4.300.0000.00616.36
7.4.290.0070.00016.36
7.4.280.0080.00016.46
7.4.270.0000.00716.31
7.4.260.0000.00816.25
7.4.250.0000.00716.29
7.4.240.0020.00516.40
7.4.230.0030.00316.34
7.4.220.0130.00716.35
7.4.210.0090.00616.46
7.4.200.0000.00716.52
7.4.190.0000.00816.44
7.4.160.0110.00416.38
7.4.150.0140.00317.40
7.4.140.0070.01017.86
7.4.130.0110.00816.33
7.4.120.0080.00916.35
7.4.110.0100.00716.20
7.4.100.0070.01116.41
7.4.90.0110.01416.31
7.4.80.0080.01219.39
7.4.70.0030.01616.47
7.4.60.0070.01016.20
7.4.50.0030.00316.43
7.4.40.0060.00916.30
7.4.30.0100.00616.32
7.3.330.0060.00012.97
7.3.320.0060.00013.14
7.3.310.0080.00016.17
7.3.300.0030.00316.14
7.3.290.0130.00316.15
7.3.280.0100.00916.15
7.3.270.0160.00017.40
7.3.260.0130.00316.14
7.3.250.0060.01116.36
7.3.240.0090.00616.14
7.3.230.0000.01616.39
7.3.210.0100.01016.43
7.3.200.0140.00319.39
7.3.190.0130.00316.45
7.3.180.0080.00816.31
7.3.170.0070.01116.27
7.3.160.0080.00816.39
7.2.330.0000.01816.58
7.2.320.0080.01216.45
7.2.310.0130.00916.61
7.2.300.0170.01416.49
7.2.290.0030.01316.42
5.4.290.0300.06019.16
5.4.280.0300.04319.32
5.4.270.0230.04318.98
5.4.260.0230.03719.10
5.4.250.0370.04718.86
5.4.240.0330.06019.18
5.4.230.0270.03319.14
5.4.220.0270.06318.86
5.4.210.0200.06319.08
5.4.200.0200.05319.07
5.4.190.0170.04319.13
5.4.180.0200.04319.08
5.4.170.0400.06318.86
5.4.160.0370.06319.13
5.4.150.0270.06319.29
5.4.140.0300.06316.33
5.4.130.0200.04016.33
5.4.120.0270.05316.51
5.4.110.0330.05716.37
5.4.100.0300.06316.56
5.4.90.0270.04316.19
5.4.80.0230.07316.35
5.4.70.0330.06316.38
5.4.60.0330.06716.33
5.4.50.0270.06016.34
5.4.40.0270.07316.32
5.4.30.0370.06016.16
5.4.20.0330.03716.39
5.4.10.0270.04016.53
5.4.00.0300.05315.93
5.3.290.0200.04014.68
5.3.280.0230.03714.49
5.3.270.0270.04714.58
5.3.260.0370.04314.46
5.3.250.0300.07014.43
5.3.240.0230.06714.55
5.3.230.0300.07014.45
5.3.220.0270.07014.39
5.3.210.0400.05314.65
5.3.200.0330.03014.51
5.3.190.0270.03714.39
5.3.180.0270.04314.49
5.3.170.0230.05714.64
5.3.160.0200.04714.51
5.3.150.0270.04314.41
5.3.140.0270.04014.46
5.3.130.0300.04714.37
5.3.120.0330.05314.39
5.3.110.0270.03314.47
5.3.100.0330.04713.90
5.3.90.0400.06013.85
5.3.80.0270.04013.81
5.3.70.0300.03313.82
5.3.60.0200.04013.91
5.3.50.0300.03713.85
5.3.40.0230.05713.92
5.3.30.0230.05713.84
5.3.20.0230.06313.46
5.3.10.0200.05313.59
5.3.00.0230.06013.58

preferences:
57.36 ms | 401 KiB | 5 Q