3v4l.org

run code in 300+ PHP versions simultaneously
<?php $graphData = array( 'DataArr' => array ( array( 'data' => array ( array ( 'Month' => '10 Jan 2019', 'Cost' => 60.3, 'Name' => 'Savings' ), array ( 'Month' => '10 Feb 2019', 'Cost' => 45.3, 'Name' => 'Savings' ), array ( 'Month' => '10 Mar 2019', 'Cost' => 50.6, 'Name' => 'Savings' ) ) ), array ( 'data' => array ( array ( 'Month' => '10 Jan 2019', 'Cost' => 89.62, 'Name' => 'Discount' ), array ( 'Month' => '10 Feb 2019', 'Cost' => 20.2, 'Name' => 'Discount' ), array ( 'Month' => '10 Mar 2019', 'Cost' => 0.0, 'Name' => 'Discount' ) ) ) ) ); $result = []; foreach($graphData['DataArr'] as $value){ foreach($value['data'] as $details){ if(!isset($result['data'][$details['Month']])) $result['data'][$details['Month']] = ['Month' => $details['Month']]; $result['data'][$details['Month']][$details['Name']] = $details['Cost']; } } $result['data'] = array_values($result['data']); print_r($result);

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.10.0110.00719.21
8.5.00.0100.01720.09
8.4.150.0030.00014.05
8.4.140.0070.01317.39
8.4.130.0140.00617.58
8.4.120.0110.00920.70
8.4.110.0110.00718.86
8.4.100.0100.01017.65
8.4.90.0100.00817.71
8.4.80.0090.01018.02
8.4.70.0040.00517.87
8.4.60.0130.00618.69
8.4.50.0050.00618.65
8.4.40.0030.00719.59
8.4.30.0080.00020.47
8.4.20.0030.01717.55
8.4.10.0040.00419.69
8.3.280.0030.00014.05
8.3.270.0150.00516.59
8.3.260.0090.00216.52
8.3.250.0080.00219.04
8.3.240.0100.00818.52
8.3.230.0160.00416.49
8.3.220.0100.00717.31
8.3.210.0110.00716.87
8.3.200.0050.00416.63
8.3.190.0100.00917.12
8.3.180.0130.00618.70
8.3.170.0110.00717.26
8.3.160.0090.00916.47
8.3.150.0110.00717.38
8.3.140.0110.00416.88
8.3.130.0060.00318.36
8.3.120.0090.00920.77
8.3.110.0100.01020.94
8.3.100.0040.00424.06
8.3.90.0130.00326.77
8.3.80.0060.00317.97
8.3.70.0150.00616.50
8.3.60.0070.01118.55
8.3.50.0110.00523.80
8.3.40.0090.00618.79
8.3.30.0040.01118.85
8.3.20.0030.00620.80
8.3.10.0080.00021.77
8.3.00.0040.00421.86
8.2.290.0100.00920.64
8.2.280.0140.00619.88
8.2.270.0110.00716.76
8.2.260.0070.00319.16
8.2.250.0060.01316.79
8.2.240.0030.00617.53
8.2.230.0000.00922.58
8.2.220.0090.00037.54
8.2.210.0070.00026.77
8.2.200.0100.00016.63
8.2.190.0180.00416.75
8.2.180.0140.00318.30
8.2.170.0090.00922.96
8.2.160.0070.00721.02
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.47
8.2.110.0030.00620.52
8.2.100.0110.00017.78
8.2.90.0040.00420.63
8.2.80.0050.00517.97
8.2.70.0110.00017.65
8.2.60.0030.00618.16
8.2.50.0090.00018.10
8.2.40.0000.00819.46
8.2.30.0000.00719.22
8.2.20.0070.00018.03
8.2.10.0040.00419.31
8.2.00.0000.00719.32
8.1.330.0070.01216.73
8.1.320.0070.01216.41
8.1.310.0080.00018.35
8.1.300.0050.00518.64
8.1.290.0030.00618.88
8.1.280.0000.02025.92
8.1.270.0060.00320.67
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00523.77
8.1.230.0080.00420.99
8.1.220.0040.00417.74
8.1.210.0030.00519.13
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0000.00818.85
8.1.170.0030.00618.56
8.1.160.0030.00519.10
8.1.150.0000.00718.95
8.1.140.0000.00820.75
8.1.130.0030.00320.28
8.1.120.0050.00317.53
8.1.110.0080.00017.48
8.1.100.0040.00417.34
8.1.90.0030.00517.48
8.1.80.0110.00017.54
8.1.70.0000.00817.39
8.1.60.0080.00017.65
8.1.50.0030.00517.54
8.1.40.0050.00317.53
8.1.30.0020.00517.69
8.1.20.0110.00017.55
8.1.10.0110.00017.50
8.1.00.0000.00817.50
8.0.300.0030.00519.93
8.0.290.0080.00016.63
8.0.280.0070.00018.49
8.0.270.0040.00418.46
8.0.260.0060.00020.07
8.0.250.0060.00317.00
8.0.240.0030.00317.00
8.0.230.0080.00017.00
8.0.220.0070.00016.93
8.0.210.0030.00316.96
8.0.200.0000.00916.96
8.0.190.0050.00316.94
8.0.180.0040.00416.98
8.0.170.0060.00316.86
8.0.160.0030.00616.90
8.0.150.0030.00416.94
8.0.140.0040.00416.80
8.0.130.0030.00313.37
8.0.120.0030.00516.83
8.0.110.0040.00416.70
8.0.100.0000.00716.90
8.0.90.0000.00916.89
8.0.80.0050.00916.80
8.0.70.0040.00416.91
8.0.60.0000.00716.77
8.0.50.0040.00416.95
8.0.30.0030.01516.99
8.0.20.0160.00517.15
8.0.10.0040.00416.84
8.0.00.0030.01416.87
7.4.330.0050.00016.77
7.4.320.0030.00316.40
7.4.300.0030.00316.45
7.4.290.0050.00416.38
7.4.280.0040.00416.62
7.4.270.0060.00016.43
7.4.260.0000.00513.30
7.4.250.0070.00016.51
7.4.240.0020.00616.59
7.4.230.0000.00716.43
7.4.220.0070.00016.63
7.4.210.0080.00816.60
7.4.200.0080.00016.37
7.4.130.0100.00716.61
7.4.120.0090.00916.65
7.4.110.0140.00416.49
7.4.100.0100.00616.53
7.4.90.0080.00816.45
7.4.80.0090.01219.39
7.4.70.0100.00716.70
7.4.60.0090.00916.50
7.4.50.0100.00616.34
7.4.40.0150.00616.64
7.4.20.0090.01016.15
7.4.10.0120.00316.50
7.4.00.0120.00316.55
7.3.330.0070.00016.43
7.3.320.0050.00013.15
7.3.310.0000.00716.25
7.3.300.0000.00716.36
7.3.290.0140.00216.38
7.3.280.0070.00716.35
7.3.260.0090.00916.54
7.3.240.0100.00616.60
7.3.230.0070.01016.31
7.3.210.0140.00416.48
7.3.200.0080.01316.61
7.3.190.0100.00716.41
7.3.180.0100.00616.48
7.3.170.0090.00916.50
7.3.160.0120.00316.41
7.3.140.0060.00916.48
7.3.130.0150.00016.24
7.3.120.0070.00716.09
7.3.110.0070.01416.20
7.3.100.0130.00316.19
7.3.90.0090.00616.16
7.3.80.0040.01216.43
7.3.70.0030.01716.35
7.3.60.0060.00916.11
7.3.50.0060.01016.22
7.3.40.0110.00516.48
7.3.30.0060.01016.29
7.3.20.0130.00316.39
7.3.10.0100.00716.42
7.3.00.0070.01016.49
7.2.330.0110.01116.52
7.2.320.0070.01116.73
7.2.310.0110.00616.59
7.2.300.0060.01316.41
7.2.290.0140.00816.42
7.2.270.0110.00516.51
7.2.260.0160.00016.49
7.2.250.0060.01216.59
7.2.240.0070.01116.66
7.2.230.0090.00616.54
7.2.220.0110.00416.43
7.2.210.0030.01916.52
7.2.200.0170.00016.50
7.2.190.0070.01016.51
7.2.180.0080.00816.54
7.2.170.0030.01316.63
7.2.160.0120.00616.47
7.2.150.0040.01416.76
7.2.140.0070.01116.74
7.2.130.0030.01516.53
7.2.120.0110.00616.56
7.2.110.0040.01416.55
7.2.100.0160.00516.68
7.2.90.0090.00916.54
7.2.80.0130.01016.64
7.2.70.0160.00616.68
7.2.60.0030.01316.64
7.2.50.0090.01316.67
7.2.40.0160.00616.55
7.2.30.0100.00716.62
7.2.20.0070.01116.46
7.2.10.0060.01316.77
7.2.00.0120.00616.40

preferences:
37.51 ms | 403 KiB | 5 Q