3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '{"ORDERLIST":"{\"ORDER_LIST\":[{\"order_id\":\"1756\",\"uname\":\"jordan\",\"prod_name\":\"ABC\",\"quantity\":\"1\",\"branch\":\"Dapitan\",\"totalPrice\":\"23500\"}"]}"}'; $response = json_decode($content, true); $orderlist = json_decode($response['ORDERLIST'], true); $count = count($response); echo $count; //var_dump($response, $orderlist);

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.0000.01418.55
8.3.50.0080.01322.05
8.3.40.0150.00418.76
8.3.30.0140.00318.71
8.3.20.0000.00720.16
8.3.10.0030.00520.53
8.3.00.0050.00320.64
8.2.180.0090.00918.29
8.2.170.0100.00722.96
8.2.160.0120.00621.97
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0080.00021.06
8.2.110.0030.00719.30
8.2.100.0060.00617.80
8.2.90.0030.00519.23
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0080.00018.04
8.2.50.0050.00318.09
8.2.40.0090.00020.45
8.2.30.0040.00419.48
8.2.20.0000.00817.78
8.2.10.0040.00418.05
8.2.00.0000.00718.03
8.1.280.0090.00625.92
8.1.270.0130.00623.87
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.41
8.1.230.0030.00917.76
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.13
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0060.00318.64
8.1.160.0030.00620.66
8.1.150.0040.00718.93
8.1.140.0000.00819.52
8.1.130.0000.00717.73
8.1.120.0000.00717.47
8.1.110.0000.00817.36
8.1.100.0040.00417.37
8.1.90.0030.00517.33
8.1.80.0040.00417.46
8.1.70.0080.00017.43
8.1.60.0000.00717.50
8.1.50.0060.00317.52
8.1.40.0040.00417.49
8.1.30.0040.00417.57
8.1.20.0000.00817.42
8.1.10.0000.00917.61
8.1.00.0000.00717.47
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.34
8.0.270.0040.00417.08
8.0.260.0000.00617.14
8.0.250.0000.00716.84
8.0.240.0030.00616.95
8.0.230.0020.00616.96
8.0.220.0070.00016.88
8.0.210.0000.00716.88
8.0.200.0070.00016.85
8.0.190.0060.00316.96
8.0.180.0040.00416.96
8.0.170.0000.00817.01
8.0.160.0000.00817.04
8.0.150.0070.00316.93
8.0.140.0030.00516.87
8.0.130.0030.00313.41
8.0.120.0000.00816.92
8.0.110.0000.00716.99
8.0.100.0000.00716.98
8.0.90.0030.00316.75
8.0.80.0070.00716.83
8.0.70.0020.00516.95
8.0.60.0030.00516.93
8.0.50.0040.00416.90
8.0.30.0100.00816.93
8.0.20.0110.00717.40
8.0.10.0000.00817.11
8.0.00.0100.00716.81
7.4.330.0000.00516.84
7.4.320.0030.00316.62
7.4.300.0040.00416.57
7.4.290.0000.00816.47
7.4.280.0070.00016.59
7.4.270.0000.00716.43
7.4.260.0070.00316.59
7.4.250.0070.00016.46
7.4.240.0000.00716.58
7.4.230.0000.00716.46
7.4.220.0120.00616.67
7.4.210.0070.00716.58
7.4.200.0030.00316.56
7.4.160.0130.00316.40
7.4.150.0120.01217.40
7.4.140.0100.00717.86
7.4.130.0080.01216.55
7.4.120.0130.00616.68
7.4.110.0050.01416.39
7.4.100.0090.01216.61
7.4.90.0060.01216.55
7.4.80.0000.01719.39
7.4.70.0090.00916.55
7.4.60.0200.00016.64
7.4.50.0090.00916.40
7.4.40.0180.00216.47
7.4.30.0100.00616.31
7.4.00.0000.01614.83
7.3.330.0000.00513.09
7.3.320.0000.00613.23
7.3.310.0030.00316.27
7.3.300.0000.00716.36
7.3.290.0060.01316.35
7.3.280.0100.00716.32
7.3.270.0170.00017.40
7.3.260.0110.00516.46
7.3.250.0090.00816.43
7.3.240.0040.01616.37
7.3.230.0030.01416.49
7.3.210.0140.00316.44
7.3.200.0120.00616.55
7.3.190.0140.00316.45
7.3.180.0130.00616.27
7.3.170.0110.00816.25
7.3.160.0000.01516.42
7.3.10.0040.00816.74
7.3.00.0030.00916.70
7.2.330.0140.00416.42
7.2.320.0220.00016.59
7.2.310.0120.00816.36
7.2.300.0060.01216.56
7.2.290.0030.01216.46
7.2.130.0080.00416.85
7.2.120.0080.00316.82
7.2.110.0060.00616.61
7.2.100.0000.00917.05
7.2.90.0040.00817.17
7.2.80.0070.00316.97
7.2.70.0060.00616.79
7.2.60.0070.00516.94
7.2.50.0080.00416.96
7.2.40.0000.01016.80
7.2.30.0000.00916.87
7.2.20.0060.00617.00
7.2.10.0000.01216.94
7.2.00.0000.01218.04
7.1.250.0030.01015.65
7.1.200.0110.00415.64
7.1.100.0030.01017.81
7.1.70.0030.00317.03
7.1.60.0060.01619.27
7.1.50.0030.01016.84
7.1.00.0100.09022.45
7.0.200.0090.00416.66
7.0.100.0100.04020.02
7.0.90.0000.04719.95
7.0.80.0070.03720.01
7.0.70.0030.04020.01
7.0.60.0000.04319.92
7.0.50.0130.02720.26
7.0.40.0030.05320.13
7.0.30.0130.05020.05
7.0.20.0030.05019.94
7.0.10.0030.03720.17
7.0.00.0070.04720.11
5.6.280.0030.03321.06
5.6.250.0130.03320.49
5.6.240.0070.04020.66
5.6.230.0030.05720.61
5.6.220.0030.07720.63
5.6.210.0000.04720.66
5.6.200.0100.03721.09
5.6.190.0100.03721.10
5.6.180.0070.04021.04
5.6.170.0100.03721.04
5.6.160.0070.05721.04
5.6.150.0070.04021.13
5.6.140.0100.08021.11
5.6.130.0100.08321.10
5.6.120.0130.07721.10
5.6.110.0100.08321.05
5.6.100.0030.05321.12
5.6.90.0170.04321.05
5.6.80.0100.07320.40
5.6.70.0130.06720.45
5.6.60.0030.08020.38
5.6.50.0170.07020.45
5.6.40.0100.07720.30
5.6.30.0070.08020.40
5.6.20.0030.06720.29
5.6.10.0030.06720.29
5.6.00.0130.07320.45
5.5.380.0030.04720.41
5.5.370.0100.03320.42
5.5.360.0030.04020.43
5.5.350.0200.02320.37
5.5.340.0000.04320.86
5.5.330.0030.04020.61
5.5.320.0070.03720.92
5.5.310.0000.04320.92
5.5.300.0070.06720.80
5.5.290.0070.07720.91
5.5.280.0100.08020.63
5.5.270.0100.07020.88
5.5.260.0070.08720.88
5.5.250.0030.08320.58
5.5.240.0100.07320.11
5.5.230.0130.07320.27
5.5.220.0070.08020.31
5.5.210.0070.07320.13
5.5.200.0030.07020.21
5.5.190.0130.06720.19
5.5.180.0100.08320.18
5.5.160.0100.08320.12
5.5.150.0100.08320.14
5.5.140.0100.08020.07
5.5.130.0130.07020.21
5.5.120.0100.06020.20
5.5.110.0130.04320.21
5.5.100.0070.06320.16
5.5.90.0100.04719.94
5.5.80.0130.07020.06
5.5.70.0100.04320.14
5.5.60.0070.07720.14
5.5.50.0170.07020.06
5.5.40.0130.06020.14
5.5.30.0070.08020.04
5.5.20.0030.08320.09
5.5.10.0230.05020.03
5.5.00.0230.04720.09

preferences:
80.6 ms | 401 KiB | 5 Q