3v4l.org

run code in 300+ PHP versions simultaneously
<?php $products = (object)array("barrels"=>array("chemID"=> 1, "catID" => 1),array("chemID"=> 2, "catID" => 1)); $carts = (object)array(array("chemID"=> 1, "catID" => 4),array("chemID"=> 2, "catID" => 4), array("chemID"=> 2, "catID" => 1)); var_dump($products); foreach($products as $key) { foreach($key as $value) { echo $key . ' ' . $value; } }

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.0090.00916.73
8.3.50.0110.00317.90
8.3.40.0150.00618.70
8.3.30.0070.00718.71
8.3.20.0130.00720.30
8.3.10.0080.00023.46
8.3.00.0060.00319.26
8.2.180.0120.00316.63
8.2.170.0120.00322.96
8.2.160.0100.00720.44
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.01126.16
8.2.120.0050.00220.81
8.2.110.0080.00422.29
8.2.100.0090.00317.93
8.2.90.0000.00819.05
8.2.80.0050.00317.97
8.2.70.0000.01117.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00719.14
8.2.30.0040.00420.55
8.2.20.0000.00917.81
8.2.10.0030.00517.94
8.2.00.0000.00718.00
8.1.280.0150.00625.92
8.1.270.0060.00323.91
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00022.52
8.1.230.0040.00717.66
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0050.00317.25
8.1.180.0070.00018.10
8.1.170.0040.00420.10
8.1.160.0050.00322.08
8.1.150.0040.00418.77
8.1.140.0070.00319.57
8.1.130.0070.00017.63
8.1.120.0080.00017.36
8.1.110.0040.00417.42
8.1.100.0000.00817.44
8.1.90.0050.00317.29
8.1.80.0030.00517.51
8.1.70.0040.00417.41
8.1.60.0000.00717.58
8.1.50.0050.00317.44
8.1.40.0080.00017.50
8.1.30.0080.00317.63
8.1.20.0040.00417.54
8.1.10.0070.00017.52
8.1.00.0040.00417.45
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0000.00717.17
8.0.260.0050.00217.17
8.0.250.0000.00717.03
8.0.240.0000.00617.06
8.0.230.0000.00716.91
8.0.220.0070.00016.97
8.0.210.0050.00216.93
8.0.200.0030.00616.93
8.0.190.0000.00717.06
8.0.180.0080.00017.00
8.0.170.0080.00016.89
8.0.160.0020.00516.87
8.0.150.0070.00016.97
8.0.140.0040.00416.87
8.0.130.0030.00313.32
8.0.120.0050.00317.01
8.0.110.0040.00416.86
8.0.100.0000.00717.02
8.0.90.0030.00316.86
8.0.80.0050.01117.01
8.0.70.0070.00016.87
8.0.60.0000.00816.86
8.0.50.0000.00716.99
8.0.30.0110.00917.13
8.0.20.0140.01117.40
8.0.10.0040.00417.11
8.0.00.0110.00616.78
7.4.330.0030.00316.67
7.4.320.0030.00316.60
7.4.300.0060.00016.49
7.4.290.0000.00716.64
7.4.280.0040.00416.59
7.4.270.0040.00416.56
7.4.260.0000.00716.50
7.4.250.0000.00816.63
7.4.240.0040.00416.51
7.4.230.0000.00716.63
7.4.220.0130.00716.54
7.4.210.0070.00916.53
7.4.200.0030.00316.68
7.4.160.0090.00616.48
7.4.150.0120.01217.40
7.4.140.0090.01017.86
7.4.130.0100.00716.53
7.4.120.0100.01116.46
7.4.110.0080.01116.65
7.4.100.0100.01316.48
7.4.90.0070.01016.51
7.4.80.0080.01119.39
7.4.70.0100.01016.38
7.4.60.0080.00816.42
7.4.50.0090.00616.43
7.4.40.0130.01016.48
7.4.30.0090.00916.56
7.4.00.0130.00314.63
7.3.330.0060.00013.16
7.3.320.0070.00013.09
7.3.310.0000.00716.18
7.3.300.0060.00016.23
7.3.290.0030.00316.17
7.3.280.0070.01016.35
7.3.270.0070.01017.40
7.3.260.0150.00816.36
7.3.250.0110.01116.39
7.3.240.0160.00616.41
7.3.230.0030.01416.58
7.3.210.0150.00316.55
7.3.200.0100.00616.64
7.3.190.0040.01216.29
7.3.180.0090.00616.38
7.3.170.0110.00516.44
7.3.160.0000.01616.52
7.2.330.0070.01016.63
7.2.320.0100.01016.35
7.2.310.0140.00316.52
7.2.300.0030.01316.71
7.2.290.0110.01116.46
7.2.60.0120.00316.89
7.2.00.0060.00819.29
7.1.200.0040.01115.84
7.1.100.0080.00318.03
7.1.70.0000.00817.12
7.1.60.0060.01919.48
7.1.50.0070.01416.84
7.1.00.0000.08022.48
7.0.200.0260.00414.65
7.0.60.0200.07019.82
7.0.50.0030.05017.81
7.0.40.0070.09020.05
7.0.30.0230.08020.09
7.0.20.0230.08020.13
7.0.10.0000.05720.13
7.0.00.0130.05020.00
5.6.280.0000.03321.12
5.6.210.0170.07720.63
5.6.200.0070.06018.21
5.6.190.0100.04020.60
5.6.180.0200.04020.35
5.6.170.0300.05720.49
5.6.160.0100.07020.71
5.6.150.0130.07018.17
5.6.140.0000.04718.18
5.6.130.0100.05318.07
5.6.120.0100.05021.05
5.6.110.0200.07321.11
5.6.100.0070.08020.98
5.6.90.0070.08321.01
5.6.80.0100.08020.53
5.5.350.0300.05020.30
5.5.340.0030.04018.02
5.5.330.0070.06020.37
5.5.320.0070.06720.29
5.5.310.0200.04020.26
5.5.300.0070.08018.00
5.5.290.0030.04318.00
5.5.280.0070.04320.80
5.5.270.0130.04720.75
5.5.260.0030.05020.97
5.5.250.0170.07720.71
5.5.240.0230.06720.11

preferences:
47.03 ms | 400 KiB | 5 Q