3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = (object)[ (object)[ "totals_grouped_by" => "day", "totals" => (object)[ "2018-05-25" => (object)[ "sales" => "0.00", "orders" => 0, "items" => 0, "tax" => "0.00", "shipping" => "0.00", "discount" => "0.00", "customers" => 0 ], "2018-05-26" => (object)[ "sales" => "0.00", "orders" => 0, "items" => 0, "tax" => "0.00", "shipping" => "0.00", "discount" => "0.00", "customers" => 0 ], "2018-05-27" => (object)[ "sales" => "0.00", "orders" => 0, "items" => 0, "tax" => "0.00", "shipping" => "0.00", "discount" => "0.00", "customers" => 0 ] ] ] ]; foreach($results as $val) { echo "Proof of mostly-accurate multi-dimensional array structure: " , $val->totals_grouped_by; } echo "\n---\n"; foreach ($results as $val) { foreach ($val->totals as $date => $subarray) { echo "Showing $date: "; var_export($subarray); echo "\n"; } } // or assuming all levels are objects and you only want the one "totals" object that you posted: echo "\n---\n"; foreach ($results->{0}->totals as $date => $subarray) { echo "Showing $date: "; var_export($subarray); echo "\n"; }

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.60.0040.01118.43
8.3.50.0070.01418.07
8.3.40.0040.01118.82
8.3.30.0070.00718.82
8.3.20.0040.00418.98
8.3.10.0080.00019.08
8.3.00.0070.00023.61
8.2.180.0060.01018.29
8.2.170.0140.00022.96
8.2.160.0130.00319.34
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00321.12
8.2.120.0040.00426.35
8.2.110.0030.00621.04
8.2.100.0080.00417.77
8.2.90.0050.00318.09
8.2.80.0000.00818.15
8.2.70.0000.00818.05
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0040.00419.43
8.2.30.0000.00719.39
8.2.20.0040.00418.09
8.2.10.0040.00418.23
8.2.00.0030.00319.38
8.1.280.0120.00325.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00319.28
8.1.230.0090.00322.12
8.1.220.0080.00017.76
8.1.210.0030.00520.72
8.1.200.0080.00017.35
8.1.190.0040.00417.11
8.1.180.0000.00918.10
8.1.170.0050.00318.52
8.1.160.0070.00019.02
8.1.150.0040.00418.78
8.1.140.0030.00617.73
8.1.130.0000.00818.92
8.1.120.0070.00417.38
8.1.110.0110.00017.46
8.1.100.0070.00017.50
8.1.90.0030.00617.48
8.1.80.0000.00817.36
8.1.70.0000.00717.52
8.1.60.0110.00017.58
8.1.50.0080.00017.58
8.1.40.0070.00017.39
8.1.30.0000.00717.68
8.1.20.0060.00317.55
8.1.10.0040.00417.49
8.1.00.0060.00317.38
8.0.300.0040.00419.80
8.0.290.0070.00016.75
8.0.280.0030.00318.43
8.0.270.0030.00317.27
8.0.260.0030.00317.18
8.0.250.0070.00016.99
8.0.240.0070.00016.90
8.0.230.0000.00717.02
8.0.220.0000.00716.95
8.0.210.0040.00416.97
8.0.200.0000.00717.02
8.0.190.0040.00416.92
8.0.180.0000.00816.98
8.0.170.0060.00316.87
8.0.160.0000.00717.00
8.0.150.0040.00416.78
8.0.140.0000.00916.81
8.0.130.0030.00313.48
8.0.120.0040.00417.02
8.0.110.0040.00416.87
8.0.100.0000.00716.83
8.0.90.0070.00016.84
8.0.80.0090.00716.96
8.0.70.0040.00417.03
8.0.60.0000.00716.83
8.0.50.0050.00216.84
8.0.30.0100.00917.01
8.0.20.0090.01117.40
8.0.10.0000.00716.99
8.0.00.0070.01316.84
7.4.330.0000.00515.55
7.4.320.0030.00316.64
7.4.300.0000.00716.64
7.4.290.0030.00316.51
7.4.280.0030.00616.65
7.4.270.0030.00316.44
7.4.260.0020.00516.51
7.4.250.0000.00716.47
7.4.240.0030.00316.66
7.4.230.0080.00016.71
7.4.220.0000.00916.25
7.4.210.0080.01016.60
7.4.200.0080.00016.33
7.4.160.0090.00916.65
7.4.140.0110.00817.86
7.4.130.0060.01216.57
7.4.120.0090.01016.48
7.4.110.0110.00616.65
7.4.100.0060.01116.54
7.4.90.0190.00016.57
7.4.80.0120.00919.39
7.4.70.0100.00716.44
7.4.60.0110.01116.44
7.4.50.0060.01016.20
7.4.40.0120.00616.66
7.4.00.0030.01414.69
7.3.330.0000.00813.23
7.3.320.0050.00013.33
7.3.310.0040.00416.37
7.3.300.0000.00716.30
7.3.290.0040.00416.38
7.3.280.0120.00516.38
7.3.260.0100.01116.47
7.3.240.0130.00716.52
7.3.230.0080.00916.64
7.3.210.0130.00616.51
7.3.200.0090.01016.27
7.3.190.0070.01616.39
7.3.180.0030.01316.48
7.3.170.0140.00716.58
7.3.160.0100.00616.66
7.2.330.0100.01416.71
7.2.320.0100.01316.55
7.2.310.0200.00016.84
7.2.300.0090.01416.46
7.2.290.0090.00916.88
7.2.70.0160.01014.69
7.2.60.0950.00714.83
7.2.50.0110.01414.96
7.2.40.0220.00315.07
7.2.30.0230.00314.76
7.2.20.0150.01114.98
7.2.10.0140.01114.78
7.2.00.0140.01115.19
7.1.200.0090.00615.83
7.1.170.0170.00713.92
7.1.160.0260.01014.00
7.1.150.0140.01113.83
7.1.140.0230.00414.13
7.1.130.0210.00413.62
7.1.120.0120.01213.93
7.1.110.0170.00914.11
7.1.100.0180.00613.89
7.1.90.0210.00313.81
7.1.80.0220.00313.86
7.1.70.0160.00813.94
7.1.60.0370.00731.85
7.1.50.0430.00431.82
7.1.40.0440.00031.81
7.1.30.0390.00631.52
7.1.20.0370.01031.63
7.1.10.0210.00313.97
7.1.00.0180.00613.78

preferences:
67.7 ms | 400 KiB | 5 Q