3v4l.org

run code in 300+ PHP versions simultaneously
<?hh type Point<T> = shape ('x' => T, 'y' => T); function demo1(Point<T> $pt1){} // do stufff - general case type Point<int> = shape ('x' => int, 'y' => int); function demo2(Point<int> $pt1) {} // special case for Point of type int only type Point<int> = shape ('x' => int, 'y' => 0); function demo3(Point<int> $pt1) {} // special case for Point of type int where y is 0

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.0040.01218.40
8.3.50.0160.00317.96
8.3.40.0040.01118.76
8.3.30.0070.00718.97
8.3.20.0070.00020.27
8.3.10.0060.00323.60
8.3.00.0070.00019.07
8.2.180.0060.00916.50
8.2.170.0090.00622.96
8.2.160.0070.00720.58
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00422.14
8.2.110.0090.00022.25
8.2.100.0090.00317.78
8.2.90.0000.00819.08
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0030.00718.07
8.2.40.0040.00419.82
8.2.30.0080.00018.11
8.2.20.0040.00417.60
8.2.10.0040.00417.92
8.2.00.0030.00617.45
8.1.270.0080.00023.83
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0100.00020.92
8.1.230.0120.00017.42
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0030.00617.10
8.1.180.0040.00418.89
8.1.170.0030.00518.34
8.1.160.0070.00021.93
8.1.150.0040.00418.51
8.1.140.0040.00417.37
8.1.130.0070.00017.77
8.1.120.0030.00517.21
8.1.110.0030.00717.38
8.1.100.0080.00017.33
8.1.90.0030.00317.35
8.1.80.0040.00417.29
8.1.70.0000.00717.14
8.1.60.0050.00317.45
8.1.50.0040.00417.33
8.1.40.0040.00417.36
8.1.30.0050.00317.52
8.1.20.0080.00017.47
8.1.10.0040.00417.41
8.1.00.0070.00017.38
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.30
8.0.270.0030.00317.10
8.0.260.0040.00417.09
8.0.250.0030.00316.66
8.0.240.0000.00816.80
8.0.230.0030.00616.68
8.0.220.0000.00716.82
8.0.210.0050.00216.72
8.0.200.0050.00216.86
8.0.190.0000.00716.88
8.0.180.0000.00716.70
8.0.170.0040.00416.68
8.0.160.0050.00216.80
8.0.150.0040.00416.59
8.0.140.0000.00816.62
8.0.130.0060.00013.46
8.0.120.0040.00416.69
8.0.110.0040.00416.79
8.0.100.0040.00416.68
8.0.90.0030.00416.73
8.0.80.0110.01116.71
8.0.70.0030.00316.63
8.0.60.0070.00016.61
8.0.50.0040.00416.73
8.0.30.0110.00916.75
8.0.20.0060.01417.40
8.0.10.0030.00516.73
8.0.00.0090.01016.65
7.4.330.0030.00315.00
7.4.320.0030.00316.38
7.4.300.0030.00316.40
7.4.290.0070.00016.32
7.4.280.0040.00416.26
7.4.270.0030.00316.32
7.4.260.0000.00716.44
7.4.250.0040.00416.23
7.4.240.0020.00516.42
7.4.230.0000.00716.44
7.4.220.0150.01016.40
7.4.210.0080.00816.44
7.4.200.0000.00716.26
7.4.190.0000.00616.34
7.4.160.0120.00316.41
7.4.150.0110.00617.40
7.4.140.0140.00417.86
7.4.130.0100.00816.48
7.4.120.0160.00416.44
7.4.110.0040.01916.33
7.4.100.0120.01216.21
7.4.90.0070.01316.33
7.4.80.0060.01219.39
7.4.70.0110.00516.54
7.4.60.0030.01616.40
7.4.50.0030.00516.27
7.4.40.0060.01316.48
7.4.30.0030.01216.50
7.3.330.0020.00213.20
7.3.320.0050.00012.97
7.3.310.0000.00715.97
7.3.300.0030.00316.00
7.3.290.0000.01816.20
7.3.280.0100.00816.13
7.3.270.0100.00717.40
7.3.260.0140.00316.07
7.3.250.0140.00316.30
7.3.240.0090.00916.52
7.3.230.0160.00616.39
7.3.210.0130.00316.26
7.3.200.0140.00719.39
7.3.190.0000.00016.39
7.3.180.0040.01116.09
7.3.170.0070.01016.27
7.3.160.0130.00316.28
7.2.330.0180.00416.62
7.2.320.0110.01016.57
7.2.310.0130.01016.58
7.2.300.0100.00716.57
7.2.290.0040.01316.61
5.4.320.0070.03612.45
5.4.310.0060.03812.45
5.4.300.0140.04312.45
5.4.290.0110.05212.45
5.4.280.0090.04512.34
5.4.270.0190.07112.34
5.4.260.0140.04312.34
5.4.250.0110.05512.34
5.4.240.0190.04112.34
5.4.230.0090.04412.34
5.4.220.0060.04212.34
5.4.210.0090.05612.34
5.4.200.0100.06312.34
5.4.190.0080.05612.34
5.4.180.0140.07612.33
5.4.170.0090.04312.35
5.4.160.0090.04012.34
5.4.150.0140.04812.34
5.4.140.0100.07712.02
5.4.130.0420.06712.01
5.4.120.0180.08311.97
5.4.110.0260.06611.96
5.4.100.0080.06911.96
5.4.90.0100.04211.96
5.4.80.0180.08811.96
5.4.70.0160.07611.96
5.4.60.0340.09011.96
5.4.50.0070.05311.96
5.4.40.0100.05611.95
5.4.30.0120.05811.94
5.4.20.0080.06411.95
5.4.10.0090.05411.95
5.4.00.0090.05011.43
5.3.290.0050.04512.80
5.3.280.0120.05912.71
5.3.270.0100.05112.72
5.3.260.0150.04112.72
5.3.250.0130.03512.72
5.3.240.0070.03812.71
5.3.230.0050.04112.71
5.3.220.0100.03612.68
5.3.210.0150.03612.68
5.3.200.0080.03912.68
5.3.190.0080.04212.68
5.3.180.0080.04012.67
5.3.170.0110.05112.67
5.3.160.0100.04212.67
5.3.150.0110.05812.67
5.3.140.0090.05912.66
5.3.130.0070.05712.66
5.3.120.0130.04712.66
5.3.110.0110.04112.66
5.3.100.0080.03812.12
5.3.90.0060.03912.08
5.3.80.0070.03812.07
5.3.70.0080.04412.08
5.3.60.0070.04912.06
5.3.50.0100.03812.00
5.3.40.0070.04412.00
5.3.30.0130.05311.94
5.3.20.0230.08511.72
5.3.10.0080.04311.69
5.3.00.0090.03911.67

preferences:
52.67 ms | 400 KiB | 5 Q