3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class demo<T, Z> { type 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.0090.00618.59
8.3.30.0100.00618.78
8.3.20.0070.00020.09
8.3.10.0040.00423.66
8.3.00.0070.00019.15
8.2.170.0090.00622.96
8.2.160.0100.00320.44
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00022.08
8.2.110.0060.00320.86
8.2.100.0080.00417.72
8.2.90.0000.00719.22
8.2.80.0050.00317.97
8.2.70.0050.00517.50
8.2.60.0000.00817.80
8.2.50.0070.00418.07
8.2.40.0050.00319.82
8.2.30.0040.00418.16
8.2.20.0050.00217.42
8.2.10.0000.00717.83
8.2.00.0000.00817.46
8.1.270.0050.00323.82
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00321.31
8.1.230.0090.00317.45
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0030.00617.10
8.1.180.0000.00818.88
8.1.170.0000.00918.37
8.1.160.0040.00421.93
8.1.150.0040.00418.45
8.1.140.0070.00017.30
8.1.130.0070.00017.68
8.1.120.0070.00017.37
8.1.110.0030.00617.20
8.1.100.0050.00217.33
8.1.90.0040.00417.20
8.1.80.0040.00417.27
8.1.70.0000.00817.22
8.1.60.0070.00017.37
8.1.50.0040.00417.32
8.1.40.0000.00817.33
8.1.30.0000.00817.42
8.1.20.0040.00417.49
8.1.10.0000.00717.53
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0000.00917.15
8.0.280.0030.00318.29
8.0.270.0030.00317.14
8.0.260.0030.00317.23
8.0.250.0060.00016.79
8.0.240.0080.00016.78
8.0.230.0030.00616.70
8.0.220.0070.00016.77
8.0.210.0030.00316.82
8.0.200.0050.00316.81
8.0.190.0060.00316.87
8.0.180.0030.00516.73
8.0.170.0040.00416.74
8.0.160.0070.00016.75
8.0.150.0070.00016.76
8.0.140.0030.00416.71
8.0.130.0000.00513.46
8.0.120.0080.00016.68
8.0.110.0040.00416.79
8.0.100.0040.00416.61
8.0.90.0000.00716.70
8.0.80.0040.01716.75
8.0.70.0000.00716.74
8.0.60.0000.00816.84
8.0.50.0040.00416.75
8.0.30.0110.00816.90
8.0.20.0060.01217.40
8.0.10.0000.00816.69
8.0.00.0090.00916.68
7.4.330.0020.00215.13
7.4.320.0040.00416.46
7.4.300.0030.00316.32
7.4.290.0030.00316.48
7.4.280.0050.00316.35
7.4.270.0030.00316.26
7.4.260.0000.00816.45
7.4.250.0050.00216.38
7.4.240.0060.00116.45
7.4.230.0030.00316.40
7.4.220.0070.01316.29
7.4.210.0080.00816.46
7.4.200.0070.00016.54
7.4.190.0000.00716.30
7.4.160.0110.00516.38
7.4.150.0070.01017.40
7.4.140.0110.00717.86
7.4.130.0100.01016.35
7.4.120.0130.00416.39
7.4.110.0080.00816.53
7.4.100.0130.00916.30
7.4.90.0130.01016.30
7.4.80.0140.01016.34
7.4.70.0080.00716.26
7.4.60.0100.00716.42
7.4.50.0030.00616.13
7.4.40.0110.01116.27
7.4.30.0070.01016.36
7.3.330.0000.00513.05
7.3.320.0030.00312.95
7.3.310.0000.00716.16
7.3.300.0030.00316.02
7.3.290.0110.00716.18
7.3.280.0080.00716.10
7.3.270.0060.01017.40
7.3.260.0070.01016.16
7.3.250.0090.00716.15
7.3.240.0110.00616.43
7.3.230.0090.00616.39
7.3.210.0080.00816.32
7.3.200.0140.01019.39
7.3.190.0050.00416.19
7.3.180.0090.00616.46
7.3.170.0070.01016.44
7.3.160.0160.00416.12
7.2.330.0070.01016.54
7.2.320.0000.01716.52
7.2.310.0030.01316.42
7.2.300.0100.01316.38
7.2.290.0100.01316.53
5.4.320.0100.04712.45
5.4.310.0050.04312.45
5.4.300.0070.04512.45
5.4.290.0040.05812.45
5.4.280.0080.05112.34
5.4.270.0080.05012.35
5.4.260.0030.05812.34
5.4.250.0090.05212.34
5.4.240.0080.05212.34
5.4.230.0150.05012.34
5.4.220.0090.05412.34
5.4.210.0090.05112.34
5.4.200.0110.05012.34
5.4.190.0140.04712.34
5.4.180.0060.05412.34
5.4.170.0090.05112.35
5.4.160.0110.04612.34
5.4.150.0090.04812.34
5.4.140.0060.05412.02
5.4.130.0100.05012.01
5.4.120.0100.05111.97
5.4.110.0110.04811.96
5.4.100.0050.05111.96
5.4.90.0050.05511.96
5.4.80.0080.05311.96
5.4.70.0090.05111.96
5.4.60.0060.05211.96
5.4.50.0090.05011.96
5.4.40.0090.04911.95
5.4.30.0100.04811.95
5.4.20.0080.05611.95
5.4.10.0140.06011.95
5.4.00.0100.05311.44
5.3.290.0040.04912.80
5.3.280.0100.05412.71
5.3.270.0080.06212.73
5.3.260.0170.06612.72
5.3.250.0080.04812.72
5.3.240.0090.05612.71
5.3.230.0090.04312.71
5.3.220.0040.04612.68
5.3.210.0080.05012.68
5.3.200.0090.04012.68
5.3.190.0120.04612.67
5.3.180.0180.06412.67
5.3.170.0170.06112.67
5.3.160.0190.05912.68
5.3.150.0110.06512.68
5.3.140.0170.10312.66
5.3.130.0130.08412.66
5.3.120.0080.05712.66
5.3.110.0070.05812.66
5.3.100.0080.05212.12
5.3.90.0070.05412.08
5.3.80.0080.05412.08
5.3.70.0140.05012.08
5.3.60.0090.05312.06
5.3.50.0120.04812.00
5.3.40.0160.06012.00
5.3.30.0120.06511.94
5.3.20.0120.05611.71
5.3.10.0100.05211.69
5.3.00.0170.08211.67

preferences:
35.87 ms | 400 KiB | 5 Q