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,COUNT_RECURSIVE); 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.0040.01118.30
8.3.50.0060.00918.05
8.3.40.0090.00918.98
8.3.30.0110.00318.71
8.3.20.0070.00020.30
8.3.10.0080.00020.36
8.3.00.0000.00820.64
8.2.180.0070.01418.54
8.2.170.0060.01222.96
8.2.160.0070.01422.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0080.00026.35
8.2.110.0060.00622.11
8.2.100.0040.00817.93
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0030.00617.49
8.2.60.0080.00017.93
8.2.50.0080.00018.09
8.2.40.0000.00920.45
8.2.30.0000.00719.35
8.2.20.0070.00017.66
8.2.10.0000.00718.05
8.2.00.0040.00417.93
8.1.280.0060.01225.92
8.1.270.0040.01123.83
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0100.00022.66
8.1.230.0120.00017.77
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0120.00018.10
8.1.160.0040.00420.75
8.1.150.0100.00018.86
8.1.140.0000.00819.52
8.1.130.0030.00317.69
8.1.120.0000.00717.38
8.1.110.0000.00717.41
8.1.100.0000.00817.36
8.1.90.0040.00417.29
8.1.80.0060.00317.30
8.1.70.0030.00317.43
8.1.60.0060.00317.55
8.1.50.0060.00317.52
8.1.40.0080.00017.48
8.1.30.0060.00317.56
8.1.20.0000.00817.49
8.1.10.0000.00817.51
8.1.00.0000.00817.47
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0030.00518.45
8.0.270.0030.00317.11
8.0.260.0000.00617.20
8.0.250.0000.00716.86
8.0.240.0070.00017.01
8.0.230.0030.00316.93
8.0.220.0040.00416.87
8.0.210.0070.00016.93
8.0.200.0000.00616.86
8.0.190.0030.00617.02
8.0.180.0080.00016.83
8.0.170.0050.00216.91
8.0.160.0040.00416.90
8.0.150.0030.00616.84
8.0.140.0070.00016.84
8.0.130.0000.00613.35
8.0.120.0040.00416.94
8.0.110.0040.00416.91
8.0.100.0000.00816.92
8.0.90.0000.00716.78
8.0.80.0060.00916.89
8.0.70.0040.00416.90
8.0.60.0000.00816.86
8.0.50.0000.00716.93
8.0.30.0120.00517.06
8.0.20.0120.00917.40
8.0.10.0040.00416.90
8.0.00.0080.01116.81
7.4.330.0050.00016.89
7.4.320.0000.00616.47
7.4.300.0000.00616.43
7.4.290.0030.00316.57
7.4.280.0040.00416.44
7.4.270.0040.00416.55
7.4.260.0050.00316.43
7.4.250.0040.00416.31
7.4.240.0030.00516.54
7.4.230.0000.00816.63
7.4.220.0100.00716.50
7.4.210.0100.00316.37
7.4.200.0070.00016.38
7.4.160.0030.01316.41
7.4.150.0100.00717.40
7.4.140.0090.01017.86
7.4.130.0080.01016.48
7.4.120.0050.01316.59
7.4.110.0070.01816.73
7.4.100.0080.00816.42
7.4.90.0140.00616.40
7.4.80.0070.01419.39
7.4.70.0040.01216.36
7.4.60.0080.00816.56
7.4.50.0090.00616.61
7.4.40.0160.00016.59
7.4.30.0110.00516.54
7.4.00.0110.00514.81
7.3.330.0000.00513.27
7.3.320.0040.00413.16
7.3.310.0040.00416.38
7.3.300.0060.00016.18
7.3.290.0110.00416.32
7.3.280.0080.00916.33
7.3.270.0030.01317.40
7.3.260.0300.01416.63
7.3.250.0110.00816.40
7.3.240.0070.00916.48
7.3.230.0070.01016.39
7.3.210.0100.00716.32
7.3.200.0100.01016.36
7.3.190.0000.01516.27
7.3.180.0100.00716.57
7.3.170.0130.01016.46
7.3.160.0040.01716.46
7.3.120.0120.00614.64
7.3.110.0030.01314.64
7.3.100.0040.01214.72
7.3.90.0090.00614.80
7.3.80.0110.00414.80
7.3.70.0070.01014.59
7.3.60.0030.00914.95
7.3.50.0030.00914.91
7.3.40.0070.00714.81
7.3.30.0050.00414.64
7.3.20.0000.01216.76
7.3.10.0070.00816.76
7.3.00.0060.00816.73
7.2.330.0100.00916.86
7.2.320.0060.01416.61
7.2.310.0090.00916.46
7.2.300.0120.00616.66
7.2.290.0080.00816.27
7.2.250.0110.00714.82
7.2.240.0070.01414.92
7.2.230.0080.00814.82
7.2.220.0030.00715.27
7.2.210.0040.00715.21
7.2.200.0000.00914.63
7.2.190.0030.00715.06
7.2.180.0070.00714.75
7.2.170.0120.00314.78
7.2.130.0060.00616.92
7.2.120.0060.00316.98
7.2.110.0030.01016.92
7.2.100.0070.00717.00
7.2.90.0080.00316.86
7.2.80.0070.00716.75
7.2.70.0100.00616.86
7.2.60.0070.00516.71
7.2.50.0060.00617.09
7.2.40.0110.00416.93
7.2.30.0040.01116.91
7.2.20.0040.00716.82
7.2.10.0100.00316.72
7.2.00.0060.00518.08
7.1.330.0080.00315.70
7.1.320.0060.00615.89
7.1.310.0040.00915.82
7.1.300.0120.00615.95
7.1.290.0100.00315.75
7.1.280.0000.00915.95
7.1.270.0030.00615.50
7.1.260.0060.00915.78
7.1.250.0030.00815.55
7.1.200.0030.01015.82
7.1.100.0000.01718.00
7.1.70.0000.01017.16
7.1.60.0120.00919.27
7.1.50.0000.01016.63
7.1.00.0100.07022.28
7.0.200.0070.00016.72
7.0.60.0070.07321.82
7.0.50.0070.06017.89
7.0.40.0070.07320.01
7.0.30.0230.04320.19
7.0.20.0300.08020.31
7.0.10.0030.04320.23
7.0.00.0070.08020.08
5.6.280.0030.07020.95
5.6.210.0030.08320.54
5.6.200.0100.07718.16
5.6.190.0030.08320.61
5.6.180.0370.07020.77
5.6.170.0400.06020.50
5.6.160.0070.07320.41
5.6.150.0030.08318.16
5.6.140.0100.07018.12
5.6.130.0030.08718.15
5.6.120.0070.05720.96
5.6.110.0030.04320.96
5.6.100.0170.07320.98
5.6.90.0030.05021.12
5.6.80.0100.07720.50
5.5.350.0330.06720.40
5.5.340.0100.08017.92
5.5.330.0070.04020.21
5.5.320.0370.05020.43
5.5.310.0270.06020.28
5.5.300.0030.05017.90
5.5.290.0100.04317.96
5.5.280.0100.05320.77
5.5.270.0030.04320.83
5.5.260.0100.05020.88
5.5.250.0130.07320.70
5.5.240.0030.03720.22

preferences:
63.41 ms | 401 KiB | 5 Q