3v4l.org

run code in 300+ PHP versions simultaneously
<?php function horrible_excel_op($f, $g) { $tiers = [ [19.5, 2500], [18.5, 1875], [17.5, 1675], [16.5, 1550], [15.5, 1250], [14.5, 1125], [13.5, 925], [12.5, 800], [11.5, 725], [10.5, 650], [9.5, 575], [8.5, 475], [7.5, 375], [6.5, 325], [5.5, 250], [4.5, 225], [3.5, 150], [2.5, 100], [1.5, 75], ]; $defaultMultiplier = 50; foreach ($tiers as [$threshold, $multiplier]) { if ($f > $threshold) { return $g * $multiplier; } } return $g * $defaultMultiplier; } var_dump(horrible_excel_op(2.6374, 18));

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.70.0100.01016.50
8.3.60.0060.01218.30
8.3.50.0070.01018.19
8.3.40.0120.00318.67
8.3.30.0040.01118.70
8.3.20.0090.00018.96
8.3.10.0050.00320.97
8.3.00.0040.00423.48
8.2.190.0110.00316.58
8.2.180.0100.01416.50
8.2.170.0150.00618.96
8.2.160.0070.00720.57
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00421.05
8.2.120.0040.00426.35
8.2.110.0100.01020.56
8.2.100.0000.01117.72
8.2.90.0080.00019.28
8.2.80.0040.00417.97
8.2.70.0030.00517.93
8.2.60.0000.00817.79
8.2.50.0030.00518.10
8.2.40.0000.00819.48
8.2.30.0000.00719.39
8.2.20.0070.00318.12
8.2.10.0000.00718.03
8.2.00.0030.00319.49
8.1.280.0100.00525.92
8.1.270.0040.00422.15
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00323.90
8.1.230.0060.00622.71
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0060.00318.64
8.1.160.0050.00318.81
8.1.150.0070.00018.78
8.1.140.0040.00417.66
8.1.130.0000.00818.98
8.1.120.0040.00417.49
8.1.110.0070.00017.39
8.1.100.0070.00017.46
8.1.90.0030.00517.34
8.1.80.0000.00717.46
8.1.70.0040.00417.43
8.1.60.0080.00017.48
8.1.50.0000.01017.42
8.1.40.0000.00717.54
8.1.30.0120.00017.58
8.1.20.0000.00717.51
8.1.10.0040.00417.44
8.1.00.0060.00317.53
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0070.00017.22
8.0.260.0030.00317.20
8.0.250.0040.00417.00
8.0.240.0040.00417.00
8.0.230.0030.00316.97
8.0.220.0000.00816.81
8.0.210.0000.00716.89
8.0.200.0000.00716.88
8.0.190.0050.00216.83
8.0.180.0000.00816.82
8.0.170.0090.00016.90
8.0.160.0040.00416.91
8.0.150.0030.00316.82
8.0.140.0050.00216.86
8.0.130.0050.00013.31
8.0.120.0000.00716.91
8.0.110.0050.00216.81
8.0.100.0040.00416.81
8.0.90.0070.00016.78
8.0.80.0060.01016.86
8.0.70.0040.00416.96
8.0.60.0000.00716.73
8.0.50.0000.00816.75
8.0.30.0070.01017.11
8.0.20.0090.01117.40
8.0.10.0050.00216.92
8.0.00.0080.01116.99
7.4.330.0030.00315.55
7.4.320.0030.00316.47
7.4.300.0000.00716.51
7.4.290.0030.00316.60
7.4.280.0070.00016.52
7.4.270.0070.00016.41
7.4.260.0000.00716.57
7.4.250.0050.00316.42
7.4.240.0000.00716.59
7.4.230.0030.00316.64
7.4.220.0040.00416.56
7.4.210.0110.00616.57
7.4.200.0000.00816.55
7.4.160.0090.00816.63
7.4.140.0110.00917.86
7.4.130.0030.01516.55
7.4.120.0090.00916.50
7.4.110.0030.01416.48
7.4.100.0140.00316.50
7.4.90.0100.00716.51
7.4.80.0070.01719.39
7.4.70.0140.00616.34
7.4.60.0120.00516.41
7.4.50.0040.01116.51
7.4.40.0100.01316.63
7.4.00.0080.00814.97
7.3.330.0000.00513.25
7.3.320.0030.00313.38
7.3.310.0070.00016.28
7.3.300.0030.00316.32
7.3.290.0030.00316.30
7.3.280.0050.01016.39
7.3.260.0080.00916.46
7.3.240.0090.01016.62
7.3.230.0090.00916.59
7.3.210.0070.01016.33
7.3.200.0100.00716.49
7.3.190.0120.00916.40
7.3.180.0170.00316.46
7.3.170.0100.00716.36
7.3.160.0070.00716.47
7.3.120.0000.01615.03
7.3.110.0060.01314.74
7.3.100.0030.00914.98
7.3.90.0070.01015.07
7.3.80.0100.00614.93
7.3.70.0080.00414.66
7.3.60.0100.00314.83
7.3.50.0060.00714.73
7.3.40.0070.00715.01
7.3.30.0130.00314.66
7.3.20.0030.00616.59
7.3.10.0050.00716.59
7.3.00.0070.00516.72
7.2.330.0160.00616.72
7.2.320.0040.01616.76
7.2.310.0070.01016.75
7.2.300.0120.00916.49
7.2.290.0150.00716.66
7.2.250.0100.01014.98
7.2.240.0000.01714.85
7.2.230.0130.00615.03
7.2.220.0040.01214.96
7.2.210.0030.01215.04
7.2.200.0100.00315.04
7.2.190.0100.00315.11
7.2.180.0040.00815.10
7.2.170.0070.00714.97
7.2.130.0030.00917.14
7.2.120.0070.00716.68
7.2.110.0060.00916.70
7.2.100.0060.00316.88
7.2.90.0030.01017.10
7.2.80.0100.00617.01
7.2.70.0080.00316.73
7.2.60.0140.00716.05
7.2.50.0100.01015.93
7.2.40.0460.00815.83
7.2.30.0080.00815.92
7.2.20.0170.00515.91
7.2.10.0100.01015.85
7.2.00.0140.00515.90
7.1.330.0040.01115.87
7.1.320.0000.01815.94
7.1.310.0090.00616.05
7.1.300.0030.00715.65
7.1.290.0080.00315.67
7.1.280.0030.01015.83
7.1.270.0030.01415.86
7.1.260.0030.00715.94
7.1.250.0070.01016.02
7.1.200.0070.00715.69
7.1.170.0190.00813.87
7.1.160.0270.00713.75
7.1.150.0240.00914.06
7.1.140.0160.00813.73
7.1.130.0190.00513.59
7.1.120.0190.00613.79
7.1.110.0190.01014.05
7.1.100.0090.01514.01
7.1.90.0190.00513.63
7.1.80.0190.00613.54
7.1.70.0200.00713.71
7.1.60.0390.01331.60
7.1.50.0400.01031.58
7.1.40.0460.00831.59
7.1.30.0310.01131.84
7.1.20.0460.00431.75
7.1.10.0420.00713.84
7.1.00.0130.00913.85

preferences:
18.29 ms | 401 KiB | 5 Q