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.01118.02
8.3.50.0100.00821.94
8.3.40.0140.00718.59
8.3.30.0140.00318.93
8.3.20.0080.00020.09
8.3.10.0080.00023.65
8.3.00.0050.00320.74
8.2.180.0110.00416.63
8.2.170.0110.00322.96
8.2.160.0070.01020.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00020.34
8.2.110.0060.00321.04
8.2.100.0040.00717.78
8.2.90.0050.00320.92
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0060.00317.50
8.2.50.0080.00017.91
8.2.40.0030.00621.08
8.2.30.0070.00018.02
8.2.20.0000.00817.50
8.2.10.0040.00417.88
8.2.00.0040.00417.50
8.1.280.0040.01125.92
8.1.270.0060.00323.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.32
8.1.230.0040.00720.88
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0030.00717.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0000.00817.62
8.1.160.0000.00722.00
8.1.150.0000.00718.46
8.1.140.0000.00717.29
8.1.130.0030.00317.66
8.1.120.0040.00417.32
8.1.110.0050.00417.15
8.1.100.0070.00017.36
8.1.90.0000.00717.30
8.1.80.0080.00017.26
8.1.70.0000.00717.29
8.1.60.0050.00317.43
8.1.50.0000.00817.23
8.1.40.0040.00417.36
8.1.30.0040.00417.42
8.1.20.0040.00417.48
8.1.10.0020.00517.34
8.1.00.0000.00717.30
8.0.300.0000.00819.89
8.0.290.0000.00816.63
8.0.280.0070.00018.30
8.0.270.0030.00317.18
8.0.260.0060.00017.08
8.0.250.0000.00716.80
8.0.240.0040.00416.82
8.0.230.0030.00616.70
8.0.220.0080.00016.77
8.0.210.0030.00516.67
8.0.200.0060.00016.82
8.0.190.0000.00716.75
8.0.180.0040.00416.79
8.0.170.0000.00716.79
8.0.160.0080.00016.72
8.0.150.0060.00316.70
8.0.140.0060.00316.69
8.0.130.0000.00513.33
8.0.120.0040.00416.68
8.0.110.0050.00316.65
8.0.100.0040.00416.71
8.0.90.0040.00416.76
8.0.80.0090.01516.79
8.0.70.0040.00416.81
8.0.60.0000.00716.71
8.0.50.0070.00016.73
8.0.30.0110.00817.06
8.0.20.0120.00617.40
8.0.10.0000.00716.77
8.0.00.0100.00716.61
7.4.330.0000.00515.00
7.4.320.0030.00616.42
7.4.300.0060.00016.42
7.4.290.0000.00716.43
7.4.280.0040.00416.22
7.4.270.0030.00316.41
7.4.260.0000.00716.35
7.4.250.0040.00416.39
7.4.240.0050.00216.43
7.4.230.0070.00016.50
7.4.220.0080.01116.54
7.4.210.0110.00916.42
7.4.200.0030.00316.20
7.4.190.0070.00016.55
7.4.160.0080.00816.15
7.4.150.0120.01517.40
7.4.140.0120.00617.86
7.4.130.0100.00916.45
7.4.120.0050.01316.44
7.4.110.0040.01216.32
7.4.100.0100.01216.21
7.4.90.0080.00816.42
7.4.80.0110.00819.39
7.4.70.0140.00216.29
7.4.60.0040.01416.30
7.4.50.0000.00816.27
7.4.40.0100.00616.29
7.4.30.0060.01116.12
7.3.330.0050.00013.07
7.3.320.0000.00512.95
7.3.310.0070.00015.96
7.3.300.0040.00416.18
7.3.290.0080.00716.16
7.3.280.0070.01316.09
7.3.270.0130.00317.40
7.3.260.0070.01416.35
7.3.250.0140.00516.26
7.3.240.0060.01516.19
7.3.230.0110.00616.39
7.3.210.0060.00916.30
7.3.200.0070.01319.39
7.3.190.0040.01616.46
7.3.180.0160.00016.20
7.3.170.0150.00916.42
7.3.160.0030.01316.25
7.2.330.0110.00616.55
7.2.320.0070.01116.64
7.2.310.0100.00616.59
7.2.300.0140.00316.48
7.2.290.0060.01016.53
5.4.320.0030.04012.45
5.4.310.0070.04012.45
5.4.300.0090.04112.45
5.4.290.0080.03612.45
5.4.280.0090.03412.34
5.4.270.0070.03712.35
5.4.260.0100.03512.34
5.4.250.0070.03612.35
5.4.240.0030.03912.34
5.4.230.0060.03812.34
5.4.220.0050.03812.34
5.4.210.0080.03412.34
5.4.200.0070.04212.34
5.4.190.0080.03612.33
5.4.180.0080.03512.34
5.4.170.0070.03812.34
5.4.160.0100.03412.34
5.4.150.0100.04012.34
5.4.140.0050.04112.02
5.4.130.0070.03812.01
5.4.120.0070.03711.97
5.4.110.0060.03811.96
5.4.100.0040.03811.96
5.4.90.0070.03711.96
5.4.80.0070.04811.96
5.4.70.0080.05211.96
5.4.60.0070.03611.96
5.4.50.0100.03211.96
5.4.40.0080.03311.95
5.4.30.0060.03611.95
5.4.20.0050.03711.95
5.4.10.0080.03611.95
5.4.00.0090.03711.44
5.3.290.0050.04212.80
5.3.280.0100.04012.71
5.3.270.0080.03912.72
5.3.260.0070.04412.72
5.3.250.0090.03812.71
5.3.240.0090.03712.72
5.3.230.0100.03612.71
5.3.220.0050.03812.68
5.3.210.0080.03912.68
5.3.200.0080.03812.68
5.3.190.0070.04012.67
5.3.180.0070.03712.68
5.3.170.0060.03712.67
5.3.160.0060.03712.68
5.3.150.0070.03712.67
5.3.140.0070.04112.66
5.3.130.0090.03712.66
5.3.120.0040.04012.66
5.3.110.0080.03912.66
5.3.100.0070.03712.11
5.3.90.0070.03612.09
5.3.80.0080.03512.08
5.3.70.0080.03412.07
5.3.60.0070.03712.06
5.3.50.0080.04012.00
5.3.40.0050.03912.00
5.3.30.0060.03611.94
5.3.20.0040.03811.71
5.3.10.0090.03311.69
5.3.00.0050.03911.66

preferences:
41.82 ms | 401 KiB | 5 Q