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); 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.0140.00718.30
8.3.50.0150.00421.93
8.3.40.0040.01218.78
8.3.30.0060.00918.46
8.3.20.0080.00020.34
8.3.10.0080.00020.71
8.3.00.0090.00020.73
8.2.180.0140.00318.54
8.2.170.0120.00322.96
8.2.160.0100.00322.26
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.45
8.2.110.0060.00322.07
8.2.100.0070.00417.84
8.2.90.0030.00619.35
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0000.00718.05
8.2.50.0080.00018.09
8.2.40.0030.00520.63
8.2.30.0060.00319.46
8.2.20.0070.00017.80
8.2.10.0040.00418.06
8.2.00.0000.00718.16
8.1.280.0120.00625.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0000.00923.95
8.1.230.0080.00420.85
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00317.35
8.1.190.0030.00517.13
8.1.180.0050.00318.10
8.1.170.0100.00018.65
8.1.160.0000.00720.82
8.1.150.0000.00818.98
8.1.140.0080.00019.65
8.1.130.0030.00317.68
8.1.120.0030.00317.51
8.1.110.0040.00417.39
8.1.100.0040.00417.49
8.1.90.0080.00017.41
8.1.80.0000.00717.46
8.1.70.0000.00717.52
8.1.60.0080.00017.62
8.1.50.0000.00817.57
8.1.40.0040.00417.45
8.1.30.0060.00317.57
8.1.20.0030.00517.46
8.1.10.0000.00717.62
8.1.00.0080.00017.51
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0040.00418.41
8.0.270.0080.00016.77
8.0.260.0000.00617.29
8.0.250.0000.00716.86
8.0.240.0070.00016.96
8.0.230.0000.00716.97
8.0.220.0030.00516.89
8.0.210.0000.00716.96
8.0.200.0000.00716.91
8.0.190.0030.00317.00
8.0.180.0030.00516.92
8.0.170.0050.00316.86
8.0.160.0080.00016.92
8.0.150.0000.00916.86
8.0.140.0030.00316.88
8.0.130.0060.00013.39
8.0.120.0000.00816.89
8.0.110.0080.00016.96
8.0.100.0000.00716.81
8.0.90.0070.00016.89
8.0.80.0090.00616.91
8.0.70.0070.00016.89
8.0.60.0060.00316.96
8.0.50.0050.00317.03
8.0.30.0100.00817.37
8.0.20.0090.01217.40
8.0.10.0040.00417.03
8.0.00.0120.00516.86
7.4.330.0000.00516.67
7.4.320.0030.00316.63
7.4.300.0040.00416.63
7.4.290.0070.00016.68
7.4.280.0030.00616.63
7.4.270.0030.00316.53
7.4.260.0000.00816.51
7.4.250.0040.00416.59
7.4.240.0080.00016.54
7.4.230.0000.00716.45
7.4.220.0150.01116.65
7.4.210.0090.00616.59
7.4.200.0030.00316.73
7.4.160.0110.00516.55
7.4.150.0140.00317.40
7.4.140.0130.00717.86
7.4.130.0120.01016.63
7.4.120.0110.00616.67
7.4.110.0100.00716.32
7.4.100.0130.00616.43
7.4.90.0110.00616.55
7.4.80.0070.01319.39
7.4.70.0030.02016.46
7.4.60.0070.01016.44
7.4.50.0000.01516.58
7.4.40.0070.01016.63
7.4.30.0100.01116.63
7.4.00.0030.01214.73
7.3.330.0000.00513.15
7.3.320.0000.00713.09
7.3.310.0030.00316.44
7.3.300.0030.00316.32
7.3.290.0060.01216.36
7.3.280.0070.01016.31
7.3.270.0000.01717.40
7.3.260.0090.00916.60
7.3.250.0110.01116.42
7.3.240.0130.00716.43
7.3.230.0120.00616.39
7.3.210.0090.00616.46
7.3.200.0130.00316.72
7.3.190.0000.02216.36
7.3.180.0060.01516.44
7.3.170.0080.01116.59
7.3.160.0100.00716.43
7.2.330.0100.00716.82
7.2.320.0060.01316.72
7.2.310.0120.00616.60
7.2.300.0090.00616.49
7.2.290.0110.00616.53
7.2.00.0060.00619.33
7.1.100.0070.00717.91
7.1.70.0110.00017.25
7.1.60.0170.00719.27
7.1.50.0140.00716.92
7.1.00.0070.07322.40
7.0.200.0420.01314.40
7.0.60.0030.05021.77
7.0.50.0170.05717.72
7.0.40.0070.05320.12
7.0.30.0300.07320.14
7.0.20.0270.07720.16
7.0.10.0030.04320.18
7.0.00.0030.05020.29
5.6.280.0000.03321.11
5.6.210.0030.08720.50
5.6.200.0100.04718.22
5.6.190.0030.04320.41
5.6.180.0370.06320.45
5.6.170.0300.07320.61
5.6.160.0070.08020.33
5.6.150.0030.07018.12
5.6.140.0130.03318.22
5.6.130.0030.04718.21
5.6.120.0070.07021.01
5.6.110.0130.03321.00
5.6.100.0100.07320.88
5.6.90.0070.08320.91
5.6.80.0070.08020.35
5.5.350.0400.06020.48
5.5.340.0070.08317.95
5.5.330.0030.05320.21
5.5.320.0330.07720.20
5.5.310.0270.05020.19
5.5.300.0070.08317.92
5.5.290.0070.03717.95
5.5.280.0030.05720.65
5.5.270.0070.03720.86
5.5.260.0130.08020.79
5.5.250.0130.08020.58
5.5.240.0070.03720.13

preferences:
33.19 ms | 401 KiB | 5 Q