3v4l.org

run code in 300+ PHP versions simultaneously
<?hh type PointA<T> = shape ('x' => T, 'y' => T); function demo1(PointA<T> $pt1){} // do stufff - general case type PointB<int> = shape ('x' => int, 'y' => int); function demo2(PointB<int> $pt1) {} // special case for Point of type int only type PointC = shape('x' => int, 'y' => 0); function demo3(PointC<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.0080.00618.28
8.3.50.0130.00522.09
8.3.40.0070.00718.59
8.3.30.0070.00718.92
8.3.20.0000.00720.14
8.3.10.0080.00023.53
8.3.00.0040.00418.87
8.2.180.0120.00318.41
8.2.170.0150.00022.96
8.2.160.0130.00020.49
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.15
8.2.110.0040.00421.04
8.2.100.0040.00817.78
8.2.90.0030.00619.23
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0040.00417.91
8.2.50.0000.00818.10
8.2.40.0030.00620.55
8.2.30.0000.00718.21
8.2.20.0000.00717.55
8.2.10.0040.00417.92
8.2.00.0040.00417.41
8.1.280.0130.00725.92
8.1.270.0030.00723.88
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0000.00822.14
8.1.230.0070.00317.77
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0040.00418.40
8.1.160.0000.00722.03
8.1.150.0040.00418.50
8.1.140.0040.00417.16
8.1.130.0000.00717.67
8.1.120.0000.00717.16
8.1.110.0030.00717.30
8.1.100.0040.00417.21
8.1.90.0030.00317.31
8.1.80.0030.00317.34
8.1.70.0030.00317.29
8.1.60.0040.00417.41
8.1.50.0050.00517.30
8.1.40.0050.00317.36
8.1.30.0040.00417.53
8.1.20.0050.00217.52
8.1.10.0050.00217.43
8.1.00.0080.00017.38
8.0.300.0000.00818.77
8.0.290.0060.00316.58
8.0.280.0050.00318.38
8.0.270.0030.00317.18
8.0.260.0000.00617.16
8.0.250.0000.00616.75
8.0.240.0040.00416.71
8.0.230.0030.00616.84
8.0.220.0000.00716.65
8.0.210.0030.00316.65
8.0.200.0000.00716.73
8.0.190.0000.00816.84
8.0.180.0050.00216.80
8.0.170.0080.00016.73
8.0.160.0000.00716.64
8.0.150.0000.00816.63
8.0.140.0000.00816.74
8.0.130.0000.00613.33
8.0.120.0000.00816.72
8.0.110.0030.00316.69
8.0.100.0000.00716.57
8.0.90.0030.00316.55
8.0.80.0090.01216.69
8.0.70.0000.00716.86
8.0.60.0040.00416.81
8.0.50.0040.00416.63
8.0.30.0120.00716.86
8.0.20.0080.01017.40
8.0.10.0070.00016.91
8.0.00.0110.00716.46
7.4.330.0000.00415.00
7.4.320.0070.00016.36
7.4.300.0000.00616.46
7.4.290.0030.00316.31
7.4.280.0030.00616.27
7.4.270.0070.00016.44
7.4.260.0000.00716.33
7.4.250.0040.00416.25
7.4.240.0040.00416.47
7.4.230.0030.00316.48
7.4.220.0080.02116.40
7.4.210.0060.00816.47
7.4.200.0000.00716.48
7.4.190.0070.00016.26
7.4.160.0040.01116.29
7.4.150.0110.00717.40
7.4.140.0050.01217.86
7.4.130.0110.00616.40
7.4.120.0140.00716.38
7.4.110.0060.01216.30
7.4.100.0110.00716.49
7.4.90.0110.00716.32
7.4.80.0110.00919.39
7.4.70.0120.01216.46
7.4.60.0080.00916.27
7.4.50.0000.00416.28
7.4.40.0100.00616.36
7.4.30.0070.01016.44
7.3.330.0000.00612.98
7.3.320.0050.00012.95
7.3.310.0070.00016.21
7.3.300.0070.00016.11
7.3.290.0070.00716.15
7.3.280.0100.00616.15
7.3.270.0070.01317.40
7.3.260.0100.00716.22
7.3.250.0140.00316.27
7.3.240.0150.00316.29
7.3.230.0070.01016.39
7.3.210.0070.01016.31
7.3.200.0110.01119.39
7.3.190.0130.00716.39
7.3.180.0080.00916.36
7.3.170.0110.00616.45
7.3.160.0120.00916.23
7.2.330.0070.01116.33
7.2.320.0150.00416.46
7.2.310.0170.00616.64
7.2.300.0170.01016.29
7.2.290.0150.00816.39
5.4.320.0060.03912.45
5.4.310.0080.03612.45
5.4.300.0070.04212.45
5.4.290.0080.03812.45
5.4.280.0120.03412.34
5.4.270.0080.04312.34
5.4.260.0070.04312.35
5.4.250.0100.03512.35
5.4.240.0090.04112.35
5.4.230.0080.03712.34
5.4.220.0030.03912.34
5.4.210.0050.03712.34
5.4.200.0070.03712.34
5.4.190.0060.04712.34
5.4.180.0030.03912.33
5.4.170.0070.03912.35
5.4.160.0040.03912.34
5.4.150.0070.03512.34
5.4.140.0080.03512.02
5.4.130.0070.03612.01
5.4.120.0050.03811.96
5.4.110.0090.03411.96
5.4.100.0070.04211.96
5.4.90.0130.03911.96
5.4.80.0040.04211.96
5.4.70.0110.04211.96
5.4.60.0070.03411.96
5.4.50.0060.03611.96
5.4.40.0050.03611.95
5.4.30.0080.03311.95
5.4.20.0060.03611.95
5.4.10.0080.03311.95
5.4.00.0070.03511.44
5.3.290.0070.04412.80
5.3.280.0110.03612.71
5.3.270.0060.03912.72
5.3.260.0060.04312.72
5.3.250.0070.04312.72
5.3.240.0060.04012.72
5.3.230.0110.03812.71
5.3.220.0110.04112.68
5.3.210.0070.05512.68
5.3.200.0120.04112.68
5.3.190.0080.03712.68
5.3.180.0060.04012.67
5.3.170.0060.05612.67
5.3.160.0050.04712.67
5.3.150.0080.05412.67
5.3.140.0080.04012.66
5.3.130.0080.03812.66
5.3.120.0070.04012.66
5.3.110.0060.04612.66
5.3.100.0050.04412.11
5.3.90.0050.04012.09
5.3.80.0110.03512.07
5.3.70.0050.04612.07
5.3.60.0070.04112.06
5.3.50.0080.03712.00
5.3.40.0080.05112.00
5.3.30.0060.03911.94
5.3.20.0090.04011.71
5.3.10.0090.03311.69
5.3.00.0050.05411.67

preferences:
45.88 ms | 401 KiB | 5 Q