3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Todaysales = array( array("sale_time"=>"2017-09-10","payment_amount"=>1311.45), array("sale_time"=>"2017-09-10","payment_amount"=>1311.46), array("sale_time"=>"2017-09-10","payment_amount"=>175000.00), ); foreach($Todaysales as $d) { if(isset($data[$d['sale_time']])) $data[$d['sale_time']] += $d['payment_amount']; else $data[$d['sale_time']] = $d['payment_amount']; } print_r($data);

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.130.0000.00818.30
8.3.120.0120.00420.76
8.3.110.0000.00816.44
8.3.100.0070.00318.46
8.3.90.0070.00726.77
8.3.80.0000.00916.75
8.3.70.0120.00616.63
8.3.60.0090.00916.60
8.3.50.0130.00716.46
8.3.40.0070.00718.81
8.3.30.0110.00418.64
8.3.20.0070.00020.22
8.3.10.0000.00820.92
8.3.00.0000.00820.84
8.2.250.0120.00616.63
8.2.240.0070.00319.06
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0000.00726.77
8.2.200.0060.00318.41
8.2.190.0070.00716.58
8.2.180.0120.00625.92
8.2.170.0150.00419.08
8.2.160.0060.00922.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00021.05
8.2.120.0040.00426.35
8.2.110.0090.00019.45
8.2.100.0070.00417.84
8.2.90.0000.00718.22
8.2.80.0030.00617.97
8.2.70.0050.00317.93
8.2.60.0070.00418.28
8.2.50.0000.00818.10
8.2.40.0040.00419.48
8.2.30.0000.00719.23
8.2.20.0030.00518.18
8.2.10.0040.00418.16
8.2.00.0000.00718.09
8.1.300.0080.00020.14
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00820.69
8.1.230.0120.00020.88
8.1.220.0040.00417.79
8.1.210.0080.00018.86
8.1.200.0000.00817.35
8.1.190.0000.00817.35
8.1.180.0090.00018.10
8.1.170.0050.00318.65
8.1.160.0060.00318.94
8.1.150.0000.00720.04
8.1.140.0050.00319.54
8.1.130.0000.00718.92
8.1.120.0040.00417.36
8.1.110.0000.00717.46
8.1.100.0070.00017.42
8.1.90.0040.00317.49
8.1.80.0030.00517.36
8.1.70.0000.00817.49
8.1.60.0090.00017.60
8.1.50.0000.01117.47
8.1.40.0000.00717.40
8.1.30.0040.00417.65
8.1.20.0060.00317.56
8.1.10.0050.00317.47
8.1.00.0040.00717.42
8.0.300.0000.00720.06
8.0.290.0000.00816.75
8.0.280.0030.00318.44
8.0.270.0030.00317.26
8.0.260.0070.00018.84
8.0.250.0030.00316.87
8.0.240.0040.00417.03
8.0.230.0060.00316.95
8.0.220.0030.00316.84
8.0.210.0030.00316.88
8.0.200.0050.00316.96
8.0.190.0030.00616.86
8.0.180.0040.00416.97
8.0.170.0030.00316.88
8.0.160.0040.00416.88
8.0.150.0030.00516.87
8.0.140.0030.00616.76
8.0.130.0050.00013.31
8.0.120.0000.00716.82
8.0.110.0040.00416.83
8.0.100.0000.00716.89
8.0.90.0080.00016.91
8.0.80.0000.01416.84
8.0.70.0030.00516.92
8.0.60.0040.00416.95
8.0.50.0040.00416.80
8.0.30.0110.01216.98
8.0.20.0100.00917.40
8.0.10.0050.00316.88
8.0.00.0150.00716.74
7.4.330.0050.00015.55
7.4.320.0040.00416.43
7.4.300.0030.00316.61
7.4.290.0030.00316.52
7.4.280.0040.00416.46
7.4.270.0070.00016.49
7.4.260.0030.00316.39
7.4.250.0040.00416.48
7.4.240.0070.00016.57
7.4.230.0000.00716.52
7.4.220.0090.00916.61
7.4.210.0080.00916.54
7.4.200.0030.00316.37
7.4.160.0020.01416.70
7.4.150.0120.01217.40
7.4.140.0080.01217.86
7.4.130.0120.00816.56
7.4.120.0120.00816.47
7.4.110.0060.01016.57
7.4.100.0030.01516.48
7.4.90.0040.01216.57
7.4.80.0090.00919.39
7.4.70.0100.01016.48
7.4.60.0080.00816.45
7.4.50.0070.00716.50
7.4.40.0160.00616.46
7.4.30.0030.01316.55
7.4.00.0030.01214.97
7.3.330.0050.00013.16
7.3.320.0000.00513.08
7.3.310.0030.00316.37
7.3.300.0030.00316.31
7.3.290.0000.00716.23
7.3.280.0050.01116.34
7.3.270.0160.00317.40
7.3.260.0100.00616.29
7.3.250.0090.01216.54
7.3.240.0070.01116.40
7.3.230.0130.00616.63
7.3.210.0060.01216.48
7.3.200.0140.00316.38
7.3.190.0040.01216.42
7.3.180.0140.00716.57
7.3.170.0030.01316.21
7.3.160.0090.01416.36
7.2.330.0140.00416.72
7.2.320.0160.00616.64
7.2.310.0110.00616.50
7.2.300.0060.01116.61
7.2.290.0070.01016.77
7.2.80.0030.00916.43
7.2.60.0110.00016.85
7.1.200.0000.00715.51
7.1.90.0000.01618.03
7.1.80.0030.01017.96
7.1.70.0040.00816.87
7.1.60.0060.01935.00
7.1.50.0100.01634.74
7.1.40.0100.01734.47
7.1.30.0200.01334.67
7.1.20.0130.01634.60
7.1.10.0000.01316.73
7.1.00.0060.00716.49
7.0.230.0040.01217.46
7.0.220.0040.00817.60
7.0.210.0000.01216.72
7.0.200.0070.00716.66
7.0.190.0000.01216.62
7.0.180.0080.00416.50
7.0.170.0030.01116.05
7.0.160.0030.01216.49
7.0.150.0000.01316.27
7.0.140.0060.00616.25
7.0.130.0100.00316.41
7.0.120.0030.00916.38
7.0.110.0060.00616.18
7.0.100.0090.00316.21
7.0.90.0060.00616.29
7.0.80.0060.00616.24
7.0.70.0000.01316.19
7.0.60.0040.00816.02
7.0.50.0060.00616.23
7.0.40.0050.00816.48
7.0.30.0000.01316.46
7.0.20.0080.00416.30
7.0.10.0000.01316.16
7.0.00.0080.00416.25

preferences:
31.75 ms | 403 KiB | 5 Q