3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '{"ORDERLIST":"{\"ORDER_LIST\":[{\"order_id\":\"1755\",\"uname\":\"jordan\",\"prod_name\":\"ABC\",\"quantity\":\"1\",\"branch\":\"Dapitan\",\"totalPrice\":\"23500\"},{\"order_id\":\"1755\",\"uname\":\"jordan\",\"prod_name\":\"AMD Kaveri A4-7300 APU HD8470D 2-Core 2GB 500GB CPU Package\",\"quantity\":\"1\",\"branch\":\"Dapitan\",\"totalPrice\":\"23500\"}]}"}'; $response = json_decode($content, true); $orderlist = json_decode($response['ORDERLIST'], true); //var_dump($orderlist); count(var_export($orderlist)); foreach($orderlist AS $row){ echo $row[0]['order_id']; echo $row[0]['uname']; echo $row[0]['prod_name']; echo $row[0]['quantity']; echo $row[0]['branch']; echo $row[0]['totalPrice']; }

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.0100.01018.68
8.3.50.0130.00921.98
8.3.40.0060.01018.96
8.3.30.0030.01218.90
8.3.20.0000.00720.16
8.3.10.0080.00020.61
8.3.00.0040.00420.65
8.2.180.0090.00918.31
8.2.170.0120.00622.96
8.2.160.0090.00621.98
8.2.150.0120.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00421.11
8.2.120.0000.00826.35
8.2.110.0070.00319.27
8.2.100.0050.00518.05
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0000.00818.09
8.2.40.0050.00320.77
8.2.30.0000.00919.58
8.2.20.0040.00417.88
8.2.10.0040.00418.23
8.2.00.0000.00718.12
8.1.280.0100.01025.92
8.1.270.0030.00523.83
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.43
8.1.230.0040.00717.70
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0050.00318.56
8.1.160.0000.00720.73
8.1.150.0060.00619.04
8.1.140.0040.00419.53
8.1.130.0000.00817.70
8.1.120.0070.00017.45
8.1.110.0070.00017.53
8.1.100.0000.00717.43
8.1.90.0000.00717.52
8.1.80.0040.00417.43
8.1.70.0030.00317.52
8.1.60.0030.00617.59
8.1.50.0060.00317.49
8.1.40.0040.00417.60
8.1.30.0000.00817.73
8.1.20.0000.00817.59
8.1.10.0040.00417.62
8.1.00.0050.00317.41
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.47
8.0.270.0070.00017.30
8.0.260.0000.00717.20
8.0.250.0030.00317.04
8.0.240.0070.00017.02
8.0.230.0000.00716.91
8.0.220.0040.00416.83
8.0.210.0030.00316.85
8.0.200.0070.00016.98
8.0.190.0050.00217.02
8.0.180.0040.00417.04
8.0.170.0000.00817.05
8.0.160.0000.00716.96
8.0.150.0000.00716.80
8.0.140.0040.00416.98
8.0.130.0030.00313.38
8.0.120.0040.00417.01
8.0.110.0040.00417.00
8.0.100.0040.00417.11
8.0.90.0030.00416.93
8.0.80.0150.00016.99
8.0.70.0000.00716.80
8.0.60.0030.00516.87
8.0.50.0080.00016.93
8.0.30.0120.00716.94
8.0.20.0120.00817.40
8.0.10.0080.00016.99
8.0.00.0110.00716.78
7.4.330.0000.00516.84
7.4.320.0000.00616.64
7.4.300.0000.00816.64
7.4.290.0030.00716.65
7.4.280.0040.00416.43
7.4.270.0070.00016.62
7.4.260.0060.00316.43
7.4.250.0000.00816.59
7.4.240.0000.00716.54
7.4.230.0000.00716.41
7.4.220.0120.00616.59
7.4.210.0040.01116.75
7.4.200.0030.00316.69
7.4.160.0190.00016.80
7.4.150.0070.01017.40
7.4.140.0090.01317.86
7.4.130.0190.00716.63
7.4.120.0100.00716.57
7.4.110.0040.01216.54
7.4.100.0170.00416.48
7.4.90.0140.00616.51
7.4.80.0070.01419.39
7.4.70.0150.00716.54
7.4.60.0140.00416.71
7.4.50.0030.01316.51
7.4.40.0060.01016.63
7.4.30.0110.00516.54
7.4.00.0100.00715.16
7.3.330.0050.00013.17
7.3.320.0070.00013.34
7.3.310.0070.00016.30
7.3.300.0030.00316.42
7.3.290.0060.00716.42
7.3.280.0050.01116.45
7.3.270.0110.00817.40
7.3.260.0250.00016.69
7.3.240.0070.01316.51
7.3.230.0110.00716.41
7.3.210.0130.00316.33
7.3.200.0110.00916.38
7.3.190.0030.01316.43
7.3.180.0090.00916.51
7.3.170.0130.00316.41
7.3.160.0120.00416.44
7.3.120.0000.01314.95
7.3.110.0080.00314.78
7.3.100.0070.00714.93
7.3.90.0110.00414.71
7.3.80.0040.01114.94
7.3.70.0070.01014.82
7.3.60.0000.01014.93
7.3.50.0070.01015.04
7.3.40.0000.01514.75
7.3.30.0000.01515.02
7.3.20.0090.00616.73
7.3.10.0000.00916.70
7.3.00.0070.00716.77
7.2.330.0070.01016.49
7.2.320.0200.00016.72
7.2.310.0100.01016.71
7.2.300.0100.00716.72
7.2.290.0140.00316.82
7.2.240.0000.01415.30
7.2.230.0060.00914.97
7.2.220.0030.00615.02
7.2.210.0040.01114.86
7.2.200.0000.01615.28
7.2.190.0000.01515.16
7.2.180.0000.01514.93
7.2.170.0040.00815.24
7.2.160.0130.00315.27
7.2.150.0070.00716.61
7.2.140.0000.01117.06
7.2.130.0070.00717.03
7.2.120.0110.00317.02
7.2.110.0090.00317.03
7.2.100.0100.00716.99
7.2.90.0090.00617.09
7.2.80.0000.01316.93
7.2.70.0000.01816.71
7.2.60.0030.01116.98
7.2.50.0040.00817.16
7.2.40.0030.01416.69
7.2.30.0030.01417.01
7.2.20.0070.00416.80
7.2.10.0060.01016.93
7.2.00.0050.00918.18
7.1.330.0070.00715.77
7.1.320.0040.01115.86
7.1.310.0060.00615.81
7.1.300.0030.00616.02
7.1.290.0100.00016.04
7.1.280.0040.00815.66
7.1.270.0060.00615.59
7.1.260.0090.00615.61
7.1.250.0030.00915.85
7.1.200.0030.01015.79
7.1.100.0040.01118.22
7.1.70.0000.00817.22
7.1.60.0120.01219.27
7.1.50.0000.01117.02
7.1.00.0030.07722.35
7.0.200.0260.00714.64
7.0.60.0130.05721.71
7.0.50.0070.08017.80
7.0.40.0000.06320.40
7.0.30.0270.05320.34
7.0.20.0300.07720.17
7.0.10.0030.05020.23
7.0.00.0070.04019.99
5.6.280.0070.06320.84
5.6.210.0100.09020.48
5.6.200.0070.04018.19
5.6.190.0130.07720.56
5.6.180.0200.04720.27
5.6.170.0330.03720.54
5.6.160.0030.04720.39
5.6.150.0070.05318.19
5.6.140.0070.08018.21
5.6.130.0170.07718.17
5.6.120.0000.04321.07
5.6.110.0030.04020.98
5.6.100.0070.07721.13
5.6.90.0170.06720.99
5.6.80.0100.07320.36
5.5.350.0270.05320.49
5.5.340.0100.07717.93
5.5.330.0000.04720.36
5.5.320.0330.07020.31
5.5.310.0300.06720.20
5.5.300.0130.07317.94
5.5.290.0100.03318.02
5.5.280.0170.07720.86
5.5.270.0030.04020.97
5.5.260.0100.08020.75
5.5.250.0070.06320.69
5.5.240.0000.04320.04

preferences:
68.49 ms | 401 KiB | 5 Q