3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Array ( [0] => Array ( [amount] => 1439.53 [c_year] => 2021 [c_month] => 9 [short_month] => Sep ) [1] => Array ( [amount] => 1448.13 [c_year] => 2021 [c_month] => 10 [short_month] => Oct ) ) $resultsArray = [ [ "amount" => 1439.53, "c_year" => 2021, "c_month" => 9, "short_month" => "Sep" ], [ "amount" => 1448.13, "c_year" => 2021, "c_month" => 10, "short_month" => "Oct" ] ]; $monthsFees = array_map(function($fee) { return [ "month" => sprintf("%s-%s", $fee["c_month"], $fee["c_year"]), "amount" => $fee["amount"] ]; }, $resultsArray); print_r($monthsFees);

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.5.70.0090.01016.73
8.5.60.0150.00316.86
8.5.50.0070.00616.77
8.5.30.0070.00618.78
8.5.20.0130.00419.54
8.5.10.0060.00416.58
8.5.00.0120.01020.23
8.4.180.0160.00819.70
8.4.170.0140.00920.49
8.4.160.0140.00821.32
8.4.150.0070.00616.88
8.4.140.0130.01117.91
8.4.130.0130.00717.54
8.4.120.0120.00823.77
8.4.110.0030.00522.61
8.4.100.0110.00917.63
8.4.90.0120.00917.86
8.4.80.0060.00217.96
8.4.70.0090.00617.77
8.4.60.0060.00418.82
8.4.50.0060.00317.69
8.4.40.0080.00017.32
8.4.30.0160.00320.36
8.4.20.0100.01017.65
8.4.10.0060.01319.47
8.3.300.0120.00818.57
8.3.290.0110.01220.81
8.3.280.0130.00718.39
8.3.270.0130.00716.75
8.3.260.0080.01216.63
8.3.250.0110.00819.15
8.3.240.0120.00716.52
8.3.230.0120.00816.61
8.3.220.0030.00417.30
8.3.210.0040.00416.62
8.3.200.0040.00416.79
8.3.190.0130.00817.10
8.3.180.0140.00517.10
8.3.170.0070.01016.68
8.3.160.0040.01516.57
8.3.150.0130.00618.86
8.3.140.0000.00817.13
8.3.130.0000.00818.38
8.3.120.0060.00320.67
8.3.110.0090.00920.94
8.3.100.0030.00624.06
8.3.90.0070.00726.77
8.3.80.0090.00016.50
8.3.70.0150.00316.88
8.3.60.0140.00718.20
8.3.50.0110.00718.06
8.3.40.0090.00618.69
8.3.30.0090.00918.76
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.300.0100.00922.15
8.2.290.0090.01020.35
8.2.280.0130.00718.18
8.2.270.0140.00417.34
8.2.260.0060.01216.54
8.2.250.0030.00516.97
8.2.240.0080.00017.07
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0000.00826.77
8.2.200.0030.00716.50
8.2.190.0090.01216.58
8.2.180.0040.01125.92
8.2.170.0150.00018.90
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.95
8.2.110.0070.00319.14
8.2.100.0120.00017.84
8.2.90.0040.00419.95
8.2.80.0000.00819.29
8.2.70.0070.00717.50
8.2.60.0080.00018.16
8.2.50.0030.00618.07
8.2.40.0080.00017.93
8.2.30.0080.00018.04
8.2.20.0040.00420.70
8.2.10.0040.00417.77
8.2.00.0070.00019.23
8.1.340.0100.01017.69
8.1.330.0090.00921.92
8.1.320.0110.00816.04
8.1.310.0110.00716.59
8.1.300.0090.00618.45
8.1.290.0060.00330.84
8.1.280.0040.02225.92
8.1.270.0000.00823.99
8.1.260.0150.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00522.01
8.1.230.0080.00420.89
8.1.220.0000.00817.74
8.1.210.0040.00418.87
8.1.200.0060.00317.25
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0060.00318.82
8.1.160.0030.00618.77
8.1.150.0070.00018.56
8.1.140.0040.00417.46
8.1.130.0000.00720.28
8.1.120.0030.00317.47
8.1.110.0050.00317.50
8.1.100.0040.00417.48
8.1.90.0050.00317.50
8.1.80.0000.00717.39
8.1.70.0040.00417.41
8.1.60.0080.00017.61
8.1.50.0060.00317.42
8.1.40.0050.00217.50
8.1.30.0030.00617.62
8.1.20.0000.00817.64
8.1.10.0000.00817.47
8.1.00.0160.00717.33
8.0.300.0040.00420.27
8.0.290.0000.00716.58
8.0.280.0030.00318.26
8.0.270.0040.00416.76
8.0.260.0040.00418.39
8.0.250.0030.00316.92
8.0.240.0030.00616.91
8.0.230.0070.00016.86
8.0.220.0070.00016.81
8.0.210.0070.00016.85
8.0.200.0040.00417.00
8.0.190.0030.00516.98
8.0.180.0000.00716.95
8.0.170.0000.01016.74
8.0.160.0050.00316.97
8.0.150.0040.00416.88
8.0.140.0080.00316.86
8.0.130.0140.00516.82
8.0.120.0100.01016.93
8.0.110.0140.00516.77
8.0.100.0170.00216.89
8.0.90.0190.00016.95
8.0.80.0190.00016.81
8.0.70.0180.00016.79
8.0.60.0180.00016.75
8.0.50.0160.00316.80
8.0.30.0170.00316.78
8.0.20.0190.00316.92
8.0.10.0180.00017.04
8.0.00.0080.00017.04
7.4.330.0000.00516.79
7.4.320.0000.00716.61
7.4.300.0040.00416.49
7.4.290.0050.00316.44
7.4.280.0000.00816.43
7.4.270.0000.00816.58
7.4.260.0030.00316.59
7.4.250.0150.00716.50
7.4.240.0190.00316.56
7.4.230.0200.00416.65
7.4.220.0040.01516.50
7.4.210.0090.00916.48
7.4.200.0160.00016.46
7.4.190.0120.00316.66
7.4.180.0110.00816.65
7.4.160.0060.00316.46
7.4.150.0130.00016.55
7.4.140.0080.00316.43
7.4.130.0120.00516.35
7.4.120.0040.00716.43
7.4.110.0080.00316.30
7.4.100.0120.00316.53
7.4.90.0070.00716.38
7.4.80.0110.00616.38
7.4.70.0140.00416.48
7.4.60.0140.00516.38
7.4.50.0130.00616.29
7.4.40.0140.00616.43
7.4.30.0080.00416.26
7.4.20.0120.00016.41
7.4.10.0070.00716.39
7.4.00.0100.00516.33
7.3.330.0050.00516.17
7.3.320.0000.01216.14
7.3.310.0180.00016.31
7.3.300.0150.00516.12
7.3.290.0080.00816.20
7.3.280.0180.00316.21
7.3.270.0150.00516.11
7.3.260.0080.01216.29
7.3.250.0100.01016.07
7.3.240.0100.00716.19
7.3.230.0080.00416.09
7.3.220.0070.00716.11
7.3.210.0040.00816.29
7.3.200.0130.00016.16
7.3.190.0100.00316.20
7.3.180.0110.00416.20
7.3.170.0160.00316.03
7.3.160.0110.00816.24
7.3.150.0180.00016.28
7.3.140.0110.00416.20
7.3.130.0050.00815.98
7.1.320.0110.00017.61

preferences:
51.45 ms | 1381 KiB | 5 Q