3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class demo<T, Z> { newtype RET = demo<T>::RET + demo<T>::RET; } class demo<T> { type RET<T> = T; } type test = shape('demo' => demo<1,2>); //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.0040.01118.67
8.3.30.0100.00318.83
8.3.20.0070.00020.35
8.3.10.0090.00023.61
8.3.00.0070.00019.01
8.2.170.0130.00722.96
8.2.160.0090.00420.43
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0050.00222.28
8.2.110.0000.01020.47
8.2.100.0090.00317.60
8.2.90.0000.00718.09
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0030.00617.91
8.2.50.0070.00218.07
8.2.40.0030.00519.95
8.2.30.0070.00018.05
8.2.20.0050.00217.61
8.2.10.0040.00417.79
8.2.00.0020.00517.57
8.1.270.0040.00423.77
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.05
8.1.230.0070.00720.97
8.1.220.0040.00417.74
8.1.210.0040.00418.90
8.1.200.0030.00617.10
8.1.190.0000.00917.10
8.1.180.0050.00318.88
8.1.170.0080.00018.36
8.1.160.0040.00421.91
8.1.150.0000.00718.37
8.1.140.0000.00717.30
8.1.130.0070.00017.66
8.1.120.0040.00417.39
8.1.110.0060.00317.33
8.1.100.0040.00417.24
8.1.90.0050.00317.21
8.1.80.0000.00717.38
8.1.70.0040.00417.19
8.1.60.0080.00017.45
8.1.50.0030.00517.23
8.1.40.0060.00317.40
8.1.30.0060.00317.42
8.1.20.0050.00317.40
8.1.10.0080.00017.34
8.1.00.0070.00017.39
8.0.300.0000.00720.13
8.0.290.0080.00017.15
8.0.280.0030.00318.25
8.0.270.0000.00717.05
8.0.260.0060.00017.16
8.0.250.0060.00016.81
8.0.240.0040.00416.88
8.0.230.0030.00616.80
8.0.220.0070.00016.68
8.0.210.0080.00016.64
8.0.200.0070.00016.68
8.0.190.0000.00816.74
8.0.180.0000.00816.71
8.0.170.0000.00816.67
8.0.160.0030.00316.72
8.0.150.0000.00816.63
8.0.140.0040.00416.70
8.0.130.0030.00313.41
8.0.120.0000.00816.71
8.0.110.0000.00716.73
8.0.100.0030.00516.74
8.0.90.0040.00416.60
8.0.80.0090.00616.71
8.0.70.0040.00416.68
8.0.60.0070.00016.60
8.0.50.0040.00416.71
8.0.30.0090.01217.09
8.0.20.0100.00717.40
8.0.10.0040.00416.72
8.0.00.0080.01016.83
7.4.330.0000.00515.08
7.4.320.0000.00716.35
7.4.300.0000.00716.27
7.4.290.0070.00016.46
7.4.280.0050.00316.34
7.4.270.0000.00716.41
7.4.260.0050.00316.40
7.4.250.0040.00416.33
7.4.240.0000.00716.35
7.4.230.0000.00716.46
7.4.220.0090.01616.33
7.4.210.0070.01016.46
7.4.200.0000.00816.54
7.4.190.0000.00716.59
7.4.160.0120.00416.46
7.4.150.0150.00417.40
7.4.140.0140.00717.86
7.4.130.0090.00816.32
7.4.120.0050.01216.50
7.4.110.0060.00916.49
7.4.100.0040.01416.43
7.4.90.0110.00716.26
7.4.80.0120.00619.39
7.4.70.0000.01516.64
7.4.60.0060.01616.45
7.4.50.0030.00516.21
7.4.40.0080.00816.14
7.4.30.0140.00316.43
7.3.330.0000.00613.07
7.3.320.0000.00513.21
7.3.310.0030.00316.12
7.3.300.0030.00316.18
7.3.290.0070.00716.17
7.3.280.0090.00916.13
7.3.270.0110.00517.40
7.3.260.0180.00016.22
7.3.250.0110.00516.34
7.3.240.0100.00716.27
7.3.230.0130.00316.39
7.3.210.0090.00616.10
7.3.200.0140.00419.39
7.3.190.0100.00716.15
7.3.180.0060.00916.06
7.3.170.0100.01316.27
7.3.160.0140.00616.06
7.2.330.0090.00916.59
7.2.320.0160.00316.36
7.2.310.0120.00916.17
7.2.300.0070.01416.73
7.2.290.0100.00716.71
5.4.320.0030.04212.45
5.4.310.0090.05712.45
5.4.300.0080.04712.45
5.4.290.0180.06712.45
5.4.280.0110.04812.35
5.4.270.0100.04712.35
5.4.260.0100.05212.34
5.4.250.0080.07512.35
5.4.240.0100.06512.35
5.4.230.0120.05112.34
5.4.220.0120.05112.34
5.4.210.0120.04512.34
5.4.200.0070.05112.34
5.4.190.0070.04212.33
5.4.180.0050.04112.33
5.4.170.0110.04412.34
5.4.160.0080.05112.34
5.4.150.0090.05412.34
5.4.140.0080.05412.02
5.4.130.0060.04612.01
5.4.120.0100.04311.96
5.4.110.0060.05311.96
5.4.100.0070.05511.97
5.4.90.0120.04211.96
5.4.80.0100.04211.96
5.4.70.0080.05411.96
5.4.60.0140.07711.96
5.4.50.0260.10411.96
5.4.40.0190.05811.95
5.4.30.0110.04711.95
5.4.20.0120.04911.95
5.4.10.0120.05711.95
5.4.00.0080.05211.44
5.3.290.0100.04912.80
5.3.280.0080.05612.71
5.3.270.0120.05512.73
5.3.260.0120.05612.72
5.3.250.0080.05512.72
5.3.240.0110.05312.72
5.3.230.0100.05212.71
5.3.220.0110.05812.68
5.3.210.0120.05412.68
5.3.200.0080.05512.68
5.3.190.0070.05412.68
5.3.180.0100.05612.67
5.3.170.0130.05712.67
5.3.160.0080.05912.67
5.3.150.0120.05412.67
5.3.140.0100.08912.66
5.3.130.0050.04712.65
5.3.120.0110.04412.66
5.3.110.0100.05512.66
5.3.100.0030.04612.12
5.3.90.0110.04012.09
5.3.80.0090.03812.07
5.3.70.0060.04112.07
5.3.60.0090.03912.06
5.3.50.0110.03812.00
5.3.40.0060.04212.00
5.3.30.0070.04511.94
5.3.20.0090.03711.71
5.3.10.0110.03511.69
5.3.00.0070.04111.67

preferences:
40.39 ms | 400 KiB | 5 Q