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>{1,2}; } 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.40.0110.00418.72
8.3.30.0030.01018.97
8.3.20.0080.00020.03
8.3.10.0000.00923.48
8.3.00.0070.00318.92
8.2.170.0000.01422.96
8.2.160.0130.00020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.23
8.2.110.0030.00622.15
8.2.100.0040.00817.72
8.2.90.0070.00019.05
8.2.80.0090.00017.97
8.2.70.0030.00617.38
8.2.60.0000.00817.90
8.2.50.0050.00318.07
8.2.40.0080.00019.76
8.2.30.0030.00518.08
8.2.20.0000.00717.45
8.2.10.0070.00017.78
8.2.00.0040.00417.64
8.1.270.0040.00424.02
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00323.83
8.1.230.0110.00019.21
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0090.00017.23
8.1.190.0050.00317.10
8.1.180.0030.00618.75
8.1.170.0060.00318.66
8.1.160.0070.00021.87
8.1.150.0070.00018.54
8.1.140.0020.00517.27
8.1.130.0030.00317.78
8.1.120.0030.00417.33
8.1.110.0030.00717.38
8.1.100.0040.00417.29
8.1.90.0000.00817.31
8.1.80.0030.00417.29
8.1.70.0030.00317.29
8.1.60.0030.00617.45
8.1.50.0040.00417.36
8.1.40.0050.00317.40
8.1.30.0050.00317.50
8.1.20.0000.00817.41
8.1.10.0050.00317.44
8.1.00.0040.00417.22
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0070.00018.39
8.0.270.0050.00317.19
8.0.260.0000.00617.08
8.0.250.0070.00016.82
8.0.240.0050.00316.88
8.0.230.0070.00016.73
8.0.220.0070.00016.74
8.0.210.0040.00416.63
8.0.200.0030.00316.68
8.0.190.0040.00416.85
8.0.180.0000.00816.70
8.0.170.0000.00816.67
8.0.160.0000.00716.71
8.0.150.0000.00716.80
8.0.140.0070.00016.61
8.0.130.0030.00313.37
8.0.120.0040.00416.70
8.0.110.0060.00316.66
8.0.100.0000.00816.66
8.0.90.0000.00716.55
8.0.80.0070.00716.74
8.0.70.0000.00716.86
8.0.60.0070.00016.66
8.0.50.0020.00516.71
8.0.30.0130.01117.01
8.0.20.0120.00717.40
8.0.10.0040.00416.91
8.0.00.0110.00616.78
7.4.330.0000.00615.00
7.4.320.0030.00316.36
7.4.300.0030.00316.50
7.4.290.0040.00416.38
7.4.280.0090.00016.46
7.4.270.0030.00316.48
7.4.260.0070.00016.48
7.4.250.0000.00716.41
7.4.240.0020.00516.43
7.4.230.0000.00716.24
7.4.220.0120.00616.41
7.4.210.0030.01116.53
7.4.200.0000.00716.27
7.4.190.0030.00316.51
7.4.160.0060.00916.37
7.4.150.0070.01117.40
7.4.140.0120.00417.86
7.4.130.0110.01816.33
7.4.120.0100.00716.39
7.4.110.0090.00916.30
7.4.100.0070.01316.18
7.4.90.0070.01416.32
7.4.80.0150.00319.39
7.4.70.0100.00716.38
7.4.60.0120.00616.37
7.4.50.0040.00416.40
7.4.40.0040.01816.45
7.4.30.0040.01216.40
7.3.330.0000.00513.11
7.3.320.0020.00212.99
7.3.310.0000.00716.19
7.3.300.0000.00716.11
7.3.290.0100.01016.13
7.3.280.0110.00816.09
7.3.270.0110.00617.40
7.3.260.0060.00916.36
7.3.250.0090.00916.31
7.3.240.0080.00816.21
7.3.230.0040.01216.39
7.3.210.0140.00516.19
7.3.200.0070.01119.39
7.3.190.0130.00716.23
7.3.180.0030.01816.37
7.3.170.0110.00716.27
7.3.160.0090.00616.25
7.2.330.0130.00316.44
7.2.320.0090.00916.44
7.2.310.0110.00516.64
7.2.300.0170.00616.47
7.2.290.0110.00516.35
5.4.320.0060.03612.45
5.4.310.0130.03512.45
5.4.300.0070.03612.46
5.4.290.0100.05512.45
5.4.280.0100.04612.35
5.4.270.0080.05112.34
5.4.260.0090.05412.34
5.4.250.0090.05012.35
5.4.240.0090.04812.35
5.4.230.0120.05012.34
5.4.220.0100.04912.34
5.4.210.0060.05012.34
5.4.200.0070.05112.34
5.4.190.0050.05312.33
5.4.180.0170.05112.34
5.4.170.0070.03812.35
5.4.160.0070.04012.34
5.4.150.0050.04512.34
5.4.140.0070.03912.02
5.4.130.0090.04312.01
5.4.120.0090.04611.97
5.4.110.0110.04111.96
5.4.100.0060.03711.96
5.4.90.0100.03611.96
5.4.80.0100.05811.96
5.4.70.0180.04011.96
5.4.60.0070.03911.96
5.4.50.0080.04511.96
5.4.40.0110.04511.95
5.4.30.0190.04311.95
5.4.20.0090.05411.95
5.4.10.0060.06111.95
5.4.00.0130.05311.43
5.3.290.0060.04512.80
5.3.280.0090.04612.71
5.3.270.0180.05112.72
5.3.260.0150.05112.72
5.3.250.0100.04412.72
5.3.240.0090.03912.72
5.3.230.0060.03812.71
5.3.220.0060.04012.68
5.3.210.0070.03912.68
5.3.200.0110.03712.68
5.3.190.0060.03912.68
5.3.180.0070.03712.68
5.3.170.0100.03812.67
5.3.160.0050.04112.68
5.3.150.0090.04812.67
5.3.140.0130.05012.66
5.3.130.0060.05412.66
5.3.120.0070.05612.66
5.3.110.0050.05612.66
5.3.100.0060.04212.12
5.3.90.0050.05412.08
5.3.80.0060.04912.07
5.3.70.0140.05512.07
5.3.60.0070.04612.06
5.3.50.0090.04212.00
5.3.40.0100.03912.00
5.3.30.0040.04011.94
5.3.20.0070.03711.72
5.3.10.0100.03211.69
5.3.00.0080.03711.67

preferences:
39.95 ms | 400 KiB | 5 Q