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\"}]}"}'; $response = json_decode($content, true); $orderlist = json_decode($response['ORDERLIST'], true); //var_dump($orderlist); //count(var_export($orderlist)); $count = count($orderlist); echo "Count: $count"; //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.70.0060.01316.50
8.3.60.0110.00718.55
8.3.50.0110.00822.04
8.3.40.0110.00718.70
8.3.30.0100.00318.68
8.3.20.0000.00720.09
8.3.10.0060.00320.60
8.3.00.0050.00320.61
8.2.180.0110.00718.43
8.2.170.0100.00722.96
8.2.160.0100.00321.92
8.2.150.0180.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00221.11
8.2.120.0070.00026.35
8.2.110.0030.00621.04
8.2.100.0110.00017.93
8.2.90.0030.00619.35
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0040.00417.80
8.2.50.0050.00318.09
8.2.40.0000.00820.29
8.2.30.0050.00219.50
8.2.20.0080.00017.62
8.2.10.0040.00418.06
8.2.00.0020.00518.23
8.1.280.0180.00725.92
8.1.270.0100.01023.96
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.48
8.1.230.0040.00817.70
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0030.00918.46
8.1.160.0000.00820.81
8.1.150.0060.00418.89
8.1.140.0000.00819.49
8.1.130.0030.00317.63
8.1.120.0040.00417.48
8.1.110.0070.00017.47
8.1.100.0050.00217.49
8.1.90.0030.00517.46
8.1.80.0050.00517.48
8.1.70.0000.00717.48
8.1.60.0000.00717.61
8.1.50.0040.00417.53
8.1.40.0000.00817.48
8.1.30.0000.00817.57
8.1.20.0020.00517.51
8.1.10.0000.00717.55
8.1.00.0000.00717.53
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0070.00017.25
8.0.260.0060.00017.25
8.0.250.0030.00316.95
8.0.240.0060.00016.82
8.0.230.0030.00516.85
8.0.220.0040.00416.82
8.0.210.0040.00416.75
8.0.200.0030.00316.95
8.0.190.0000.00716.97
8.0.180.0030.00616.74
8.0.170.0070.00016.83
8.0.160.0040.00416.98
8.0.150.0040.00416.83
8.0.140.0000.00716.77
8.0.130.0000.00613.36
8.0.120.0050.00316.91
8.0.110.0040.00416.72
8.0.100.0050.00216.85
8.0.90.0000.00716.74
8.0.80.0090.00616.84
8.0.70.0040.00416.81
8.0.60.0000.00816.69
8.0.50.0000.00716.70
8.0.30.0130.00316.86
8.0.20.0090.01017.40
8.0.10.0000.00816.91
8.0.00.0120.01016.74
7.4.330.0000.00516.72
7.4.320.0000.00716.61
7.4.300.0030.00316.42
7.4.290.0000.00716.64
7.4.280.0040.00416.52
7.4.270.0000.00716.59
7.4.260.0060.00616.38
7.4.250.0040.00416.55
7.4.240.0000.00716.61
7.4.230.0000.00716.53
7.4.220.0060.01216.54
7.4.210.0070.00716.47
7.4.200.0050.00216.64
7.4.160.0120.00516.48
7.4.150.0090.00917.40
7.4.140.0160.00417.86
7.4.130.0120.01216.46
7.4.120.0060.01016.45
7.4.110.0140.00916.47
7.4.100.0120.00916.50
7.4.90.0090.00916.33
7.4.80.0220.00019.39
7.4.70.0110.00516.43
7.4.60.0130.00316.48
7.4.50.0070.00716.61
7.4.40.0070.01016.53
7.4.30.0100.00716.69
7.4.00.0130.00314.80
7.3.330.0030.00313.08
7.3.320.0000.00713.18
7.3.310.0070.00016.33
7.3.300.0060.00016.21
7.3.290.0070.00916.32
7.3.280.0050.01216.29
7.3.270.0030.01417.40
7.3.260.0150.00316.50
7.3.240.0050.01416.34
7.3.230.0140.00316.55
7.3.210.0070.01116.46
7.3.200.0110.01116.25
7.3.190.0080.00816.46
7.3.180.0090.00616.41
7.3.170.0130.00316.64
7.3.160.0060.00916.57
7.2.330.0120.00616.46
7.2.320.0090.00916.69
7.2.310.0090.01216.85
7.2.300.0100.00616.48
7.2.290.0040.01216.74
7.2.60.0000.01416.47
7.2.00.0060.00319.61
7.1.200.0000.01215.84
7.1.100.0070.00717.79
7.1.70.0000.01117.21
7.1.60.0100.01419.27
7.1.50.0070.01316.86
7.1.00.0000.07722.48
7.0.200.0380.00914.68
7.0.60.0070.09021.86
7.0.50.0130.05717.85
7.0.40.0030.09020.23
7.0.30.0130.05020.09
7.0.20.0230.04720.22
7.0.10.0070.05020.16
7.0.00.0000.04720.17
5.6.280.0000.06320.80
5.6.210.0170.06320.73
5.6.200.0130.07318.22
5.6.190.0170.05720.56
5.6.180.0330.06720.41
5.6.170.0230.04020.53
5.6.160.0030.04020.32
5.6.150.0000.04718.09
5.6.140.0000.04718.21
5.6.130.0100.07718.17
5.6.120.0030.04021.01
5.6.110.0030.04321.11
5.6.100.0070.09021.03
5.6.90.0070.08321.05
5.6.80.0000.05720.47
5.5.350.0370.07720.42
5.5.340.0030.07017.93
5.5.330.0030.04720.07
5.5.320.0230.04320.41
5.5.310.0170.06020.32
5.5.300.0000.04317.95
5.5.290.0070.03717.91
5.5.280.0000.09320.76
5.5.270.0070.04020.82
5.5.260.0000.08720.88
5.5.250.0070.05020.61
5.5.240.0030.06720.25

preferences:
53.55 ms | 401 KiB | 5 Q