3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ 12 => "USD", 13 => "10150.00", 14 => "9850.00", 15 => "SGD", 16 => "8015.40", 17 => "7915.40", 18 => "HKD", 19 => "1304.60", 20 => "1288.60" ]; var_export( array_reduce( array_chunk($input, 3), function($carry, $item) { $carry[$item[0]] = ["Buy" => $item[1], "Sell" => $item[2]]; return $carry; }, [] ) );

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.4.120.0080.01220.61
8.4.110.0150.00522.41
8.4.100.0090.00617.97
8.4.90.0080.01018.48
8.4.80.0160.00417.76
8.4.70.0090.01017.81
8.4.60.0090.01218.80
8.4.50.0120.00818.77
8.4.40.0150.00617.89
8.4.30.0130.00720.72
8.4.20.0130.00317.85
8.4.10.0080.00026.13
8.3.250.0110.00819.04
8.3.240.0130.00616.74
8.3.230.0140.00616.73
8.3.220.0130.00517.20
8.3.210.0090.00816.76
8.3.200.0040.00716.56
8.3.190.0110.00917.25
8.3.180.0100.00416.62
8.3.170.0090.01017.41
8.3.160.0070.01018.16
8.3.150.0130.00719.09
8.3.140.0080.00018.59
8.3.130.0080.00016.85
8.3.120.0060.00318.88
8.3.110.0090.00020.94
8.3.100.0090.00624.06
8.3.90.0110.00426.77
8.3.80.0090.00019.36
8.3.70.0220.00018.39
8.3.60.0120.00618.63
8.3.50.0070.00624.56
8.3.40.0000.01618.58
8.3.30.0070.00718.85
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0090.00626.16
8.2.290.0090.00820.40
8.2.280.0120.00718.50
8.2.270.0000.00816.91
8.2.260.0090.00916.44
8.2.250.0030.00518.41
8.2.240.0040.00418.85
8.2.230.0000.00822.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0080.00816.58
8.2.180.0120.00925.92
8.2.170.0130.00918.91
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0060.00322.21
8.2.100.0060.00617.91
8.2.90.0040.00417.63
8.2.80.0080.00018.96
8.2.70.0000.00818.16
8.2.60.0080.00018.22
8.2.50.0080.00018.10
8.2.40.0070.00019.44
8.2.30.0000.00719.42
8.2.20.0030.00518.12
8.2.10.0040.00419.21
8.2.00.0040.00419.31
8.1.330.0040.00423.66
8.1.320.0050.00416.17
8.1.310.0030.00518.49
8.1.300.0160.00018.59
8.1.290.0040.00430.84
8.1.280.0080.00825.92
8.1.270.0080.00023.99
8.1.260.0080.00028.09
8.1.250.0090.00028.09
8.1.240.0070.00319.14
8.1.230.0080.00419.17
8.1.220.0060.00317.76
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0030.00618.46
8.1.160.0040.00418.93
8.1.150.0000.00818.86
8.1.140.0020.00518.94
8.1.130.0050.00217.42
8.1.120.0000.00717.38
8.1.110.0000.00817.38
8.1.100.0090.00017.37
8.1.90.0080.00017.39
8.1.80.0030.00717.41
8.1.70.0040.00417.36
8.1.60.0060.00717.53
8.1.50.0030.00617.55
8.1.40.0000.00817.50
8.1.30.0060.00317.70
8.1.20.0030.00517.53
8.1.10.0030.00617.52
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.29
8.0.270.0030.00316.81
8.0.260.0070.00016.76
8.0.250.0040.00416.87
8.0.240.0030.00316.93
8.0.230.0040.00416.92
8.0.220.0030.00316.80
8.0.210.0030.00516.82
8.0.200.0000.00916.85
8.0.190.0040.00416.94
8.0.180.0020.00516.90
8.0.170.0040.00416.79
8.0.160.0030.00316.89
8.0.150.0030.00516.66
8.0.140.0040.00416.83
8.0.130.0050.00013.31
8.0.120.0070.00016.82
8.0.110.0000.01016.75
8.0.100.0000.00716.90
8.0.90.0080.00016.95
8.0.80.0100.00816.89
8.0.70.0030.00516.91
8.0.60.0000.00716.76
8.0.50.0000.00816.84
8.0.30.0030.01416.95
8.0.20.0080.01217.05
8.0.10.0120.00816.99
8.0.00.0090.01016.90
7.4.330.0000.00615.55
7.4.320.0060.00016.55
7.4.300.0000.00716.36
7.4.290.0040.00416.56
7.4.280.0000.00816.49
7.4.270.0040.00416.61
7.4.260.0050.00013.27
7.4.250.0050.00316.38
7.4.240.0090.00016.52
7.4.230.0040.00416.67
7.4.220.0030.00316.48
7.4.210.0060.01116.62
7.4.200.0070.00016.60
7.4.140.0170.00416.63
7.4.130.0090.01516.46
7.4.120.0090.00916.54
7.4.110.0100.01316.60
7.4.100.0180.00316.48
7.4.90.0030.01816.55
7.4.80.0060.01216.57
7.4.70.0120.00616.54
7.4.60.0070.01016.55
7.4.50.0060.01316.29
7.4.40.0100.00716.23
7.4.30.0120.00616.43
7.4.20.0100.00716.46
7.4.10.0100.00716.40
7.4.00.0120.01216.55
7.3.330.0070.00016.33
7.3.320.0000.00513.07
7.3.310.0070.00016.30
7.3.300.0070.00016.21
7.3.290.0100.00616.28
7.3.260.0100.01316.22
7.3.250.0060.01116.23
7.3.240.0080.00816.45
7.3.230.0030.01416.34
7.3.220.0130.01016.34
7.3.210.0110.00716.19
7.3.200.0000.02316.43
7.3.190.0070.01116.27
7.3.180.0140.00316.54
7.3.170.0120.00616.42
7.3.160.0110.00616.34
7.3.150.0110.00816.29
7.3.140.0070.01016.40
7.3.130.0060.01216.20
7.3.120.0160.00716.56
7.3.110.0120.00416.24
7.3.100.0120.00816.54
7.3.90.0130.00416.19
7.3.80.0030.01316.50
7.3.70.0090.00916.32
7.3.60.0110.00916.34
7.3.50.0150.00916.34
7.3.40.0110.00816.47
7.3.30.0180.00316.26
7.3.20.0120.01216.50
7.3.10.0070.01116.29
7.3.00.0160.00316.35

preferences:
28.81 ms | 403 KiB | 5 Q