3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '{"ORDERLIST":"{\"ORDER_LIST\":[{\"itemCount\":1,\"order_id\":\"2269\",\"uname\":\"jordan\",\"prod_name\":\"ABC\",\"quantity\":\"1\",\"branch\":\"Dapitan\",\"totalPrice\":\"23500\"},{\"itemCount\":1,\"order_id\":\"2269\",\"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); for($x=0;$x<1;$x++){ foreach(orderlist AS $row){ $iteration=$row[$x]['itemCount']; } }

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.0140.00718.43
8.3.60.0100.01018.56
8.3.50.0090.00921.98
8.3.40.0060.00919.02
8.3.30.0140.00018.55
8.3.20.0050.00220.16
8.3.10.0080.00020.66
8.3.00.0080.00020.77
8.2.180.0140.00316.63
8.2.170.0150.00022.96
8.2.160.0130.00622.08
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00821.04
8.2.120.0080.00026.35
8.2.110.0100.01020.39
8.2.100.0080.00318.03
8.2.90.0040.00417.74
8.2.80.0030.00719.48
8.2.70.0030.00517.49
8.2.60.0040.00417.60
8.2.50.0020.00518.05
8.2.40.0060.00318.04
8.2.30.0030.00819.50
8.2.20.0000.00817.76
8.2.10.0040.00418.02
8.2.00.0040.00418.12
8.1.280.0070.01125.92
8.1.270.0000.00823.84
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0090.00020.84
8.1.230.0070.00422.66
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0030.00617.48
8.1.190.0030.00616.98
8.1.180.0040.00418.10
8.1.170.0080.00417.62
8.1.160.0040.00420.70
8.1.150.0080.00018.91
8.1.140.0040.00419.52
8.1.130.0000.00717.64
8.1.120.0070.00017.51
8.1.110.0000.00717.49
8.1.100.0000.00717.40
8.1.90.0030.00617.45
8.1.80.0040.00417.41
8.1.70.0040.00417.50
8.1.60.0040.00417.51
8.1.50.0060.00317.60
8.1.40.0040.00417.56
8.1.30.0040.00417.66
8.1.20.0030.00517.44
8.1.10.0040.00417.53
8.1.00.0030.00617.53
8.0.300.0070.00020.11
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0070.00017.33
8.0.260.0000.00717.25
8.0.250.0000.00816.93
8.0.240.0030.00317.09
8.0.230.0040.00417.09
8.0.220.0050.00316.82
8.0.210.0030.00316.95
8.0.200.0000.00617.08
8.0.190.0000.00817.09
8.0.180.0040.00416.97
8.0.170.0040.00416.91
8.0.160.0000.00816.97
8.0.150.0000.00716.93
8.0.140.0070.00016.81
8.0.130.0050.00013.37
8.0.120.0040.00416.92
8.0.110.0000.00717.00
8.0.100.0000.00816.88
8.0.90.0000.00816.89
8.0.80.0130.00316.90
8.0.70.0000.00717.02
8.0.60.0030.00517.04
8.0.50.0000.00716.87
8.0.30.0150.00517.04
8.0.20.0090.01017.40
8.0.10.0070.00017.11
8.0.00.0100.01016.74
7.4.330.0000.00516.84
7.4.320.0000.00716.54
7.4.300.0060.00016.51
7.4.290.0000.00716.47
7.4.280.0050.00216.62
7.4.270.0070.00016.65
7.4.260.0000.00716.60
7.4.250.0000.00816.55
7.4.240.0030.00316.48
7.4.230.0030.00316.45
7.4.220.0060.01216.58
7.4.210.0070.00716.65
7.4.200.0040.00416.66
7.4.160.0130.00316.53
7.4.150.0060.01317.40
7.4.140.0170.00917.86
7.4.130.0090.01116.54
7.4.120.0100.00816.64
7.4.110.0150.00816.55
7.4.100.0080.01316.45
7.4.90.0070.01116.80
7.4.80.0100.01019.39
7.4.70.0060.01016.57
7.4.60.0110.00616.66
7.4.50.0070.00716.10
7.4.40.0030.01316.64
7.4.30.0090.00816.59
7.4.00.0030.01415.05
7.3.330.0050.00013.13
7.3.320.0020.00513.40
7.3.310.0070.00016.43
7.3.300.0060.00016.26
7.3.290.0090.01016.30
7.3.280.0080.01016.30
7.3.270.0140.00517.40
7.3.260.0030.01716.43
7.3.250.0090.00816.46
7.3.240.0100.00616.33
7.3.230.0160.00616.47
7.3.210.0120.00916.52
7.3.200.0070.01016.55
7.3.190.0130.00316.52
7.3.180.0130.00316.56
7.3.170.0100.01016.49
7.3.160.0030.01216.50
7.2.330.0080.00916.81
7.2.320.0120.00616.73
7.2.310.0130.00316.81
7.2.300.0100.00616.80
7.2.290.0060.01016.37
7.2.110.0300.00516.46
7.2.60.0100.00316.95
7.2.00.0030.00919.59
7.1.200.0000.01115.65
7.1.100.0060.00618.30
7.1.70.0000.00916.93
7.1.60.0030.02219.27
7.1.50.0070.00316.76
7.1.00.0000.08022.54
7.0.200.0030.00616.45
7.0.60.0070.07321.69
7.0.50.0070.07717.80
7.0.40.0100.06319.92
7.0.30.0300.06720.17
7.0.20.0270.07320.02
7.0.10.0100.05320.30
7.0.00.0100.08320.19
5.6.280.0000.03320.82
5.6.210.0130.07020.56
5.6.200.0100.07718.22
5.6.190.0030.07720.48
5.6.180.0330.03320.60
5.6.170.0330.07320.46
5.6.160.0070.07720.41
5.6.150.0070.07018.14
5.6.140.0070.03718.16
5.6.130.0070.08318.18
5.6.120.0030.05021.00
5.6.110.0130.07321.01
5.6.100.0200.07320.95
5.6.90.0100.07721.10
5.6.80.0000.07720.36
5.5.350.0330.07020.46
5.5.340.0000.04318.00
5.5.330.0100.08020.36
5.5.320.0230.03720.30
5.5.310.0330.06720.23
5.5.300.0000.06017.89
5.5.290.0100.08017.95
5.5.280.0070.07020.76
5.5.270.0170.07720.79
5.5.260.0070.03720.67
5.5.250.0070.05320.68
5.5.240.0070.08020.26

preferences:
48.11 ms | 401 KiB | 5 Q