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\"},{\"order_id\":\"1756\",\"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); $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.70.0090.00618.30
8.3.60.0110.00418.31
8.3.50.0150.00521.86
8.3.40.0110.00718.84
8.3.30.0060.00918.90
8.3.20.0020.00520.18
8.3.10.0040.00420.70
8.3.00.0000.00820.70
8.2.180.0150.00018.53
8.2.170.0170.00322.96
8.2.160.0100.01022.18
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00020.97
8.2.120.0050.00326.35
8.2.110.0030.00620.52
8.2.100.0040.00817.61
8.2.90.0040.00417.63
8.2.80.0030.00618.91
8.2.70.0030.00519.35
8.2.60.0030.00617.63
8.2.50.0040.00418.05
8.2.40.0000.00918.16
8.2.30.0000.00918.23
8.2.20.0040.00417.63
8.2.10.0000.00718.01
8.2.00.0060.00318.20
8.1.280.0120.00625.92
8.1.270.0060.00923.92
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00318.89
8.1.230.0110.00017.89
8.1.220.0000.00817.76
8.1.210.0030.00518.77
8.1.200.0070.00417.35
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0090.00018.66
8.1.160.0000.00718.84
8.1.150.0020.00518.83
8.1.140.0050.00319.59
8.1.130.0030.00317.67
8.1.120.0000.00717.35
8.1.110.0000.00717.38
8.1.100.0030.00317.38
8.1.90.0000.00717.42
8.1.80.0000.00817.32
8.1.70.0030.00317.42
8.1.60.0030.00617.48
8.1.50.0070.00417.37
8.1.40.0000.00817.50
8.1.30.0030.00617.54
8.1.20.0000.00817.45
8.1.10.0040.00417.45
8.1.00.0040.00417.41
8.0.300.0000.00818.77
8.0.290.0050.00316.75
8.0.280.0000.00818.58
8.0.270.0000.00717.31
8.0.260.0030.00317.19
8.0.250.0030.00317.04
8.0.240.0000.00816.99
8.0.230.0020.00516.86
8.0.220.0000.00716.86
8.0.210.0070.00016.77
8.0.200.0000.00716.91
8.0.190.0030.00616.91
8.0.180.0040.00416.73
8.0.170.0030.00316.88
8.0.160.0000.00716.73
8.0.150.0090.00316.84
8.0.140.0070.00016.71
8.0.130.0030.00313.25
8.0.120.0040.00416.80
8.0.110.0030.00516.84
8.0.100.0030.00516.73
8.0.90.0070.00016.75
8.0.80.0090.00616.73
8.0.70.0000.00816.73
8.0.60.0040.00416.89
8.0.50.0060.00316.88
8.0.30.0120.00517.20
8.0.20.0100.00817.40
8.0.10.0000.00716.91
8.0.00.0060.01316.91
7.4.330.0000.00616.66
7.4.320.0030.00316.54
7.4.300.0030.00316.44
7.4.290.0040.00416.50
7.4.280.0050.00316.52
7.4.270.0000.00716.37
7.4.260.0050.00316.57
7.4.250.0070.00016.41
7.4.240.0000.00716.47
7.4.230.0070.00016.27
7.4.220.0070.01016.43
7.4.210.0110.00416.58
7.4.200.0030.00316.29
7.4.160.0070.01416.42
7.4.150.0150.00317.40
7.4.140.0130.00517.86
7.4.130.0060.01316.53
7.4.120.0090.00816.59
7.4.110.0040.01416.65
7.4.100.0120.01316.34
7.4.90.0030.01316.57
7.4.80.0080.01519.39
7.4.70.0090.01316.49
7.4.60.0060.01016.72
7.4.50.0060.00916.48
7.4.40.0060.01016.38
7.4.30.0040.01216.34
7.4.10.0130.00314.92
7.4.00.0020.01314.86
7.3.330.0050.00013.19
7.3.320.0040.00413.04
7.3.310.0030.00316.19
7.3.300.0000.00616.32
7.3.290.0090.01016.25
7.3.280.0080.00816.25
7.3.270.0150.00517.40
7.3.260.0340.02116.33
7.3.240.0060.01016.49
7.3.230.0120.00616.39
7.3.210.0030.01316.42
7.3.200.0060.00916.34
7.3.190.0030.01216.23
7.3.180.0190.00016.44
7.3.170.0000.01616.25
7.3.160.0070.01016.39
7.3.130.0000.01514.97
7.3.120.0120.00614.99
7.3.110.0130.00614.75
7.3.100.0030.01314.61
7.3.90.0080.00614.54
7.3.80.0000.01414.75
7.3.70.0030.00814.74
7.3.60.0000.01614.61
7.3.50.0090.00914.92
7.3.40.0030.01014.76
7.3.30.0030.00614.69
7.3.20.0000.01316.39
7.3.10.0030.00716.54
7.3.00.0040.00816.57
7.2.330.0110.00716.28
7.2.320.0170.00716.46
7.2.310.0120.00916.31
7.2.300.0060.01116.56
7.2.290.0130.00416.27
7.2.260.0100.01014.96
7.2.250.0100.01014.64
7.2.240.0030.01314.97
7.2.230.0060.00914.90
7.2.220.0000.01614.84
7.2.210.0040.01215.03
7.2.200.0060.00314.89
7.2.190.0090.00614.96
7.2.180.0100.00314.98
7.2.170.0040.01215.04
7.2.160.0000.01514.96
7.2.150.0100.00316.73
7.2.140.0060.00917.05
7.2.130.0040.01116.85
7.2.120.0060.00616.87
7.2.110.0000.01416.82
7.2.100.0000.01516.85
7.2.90.0030.00916.98
7.2.80.0060.00616.86
7.2.70.0030.00616.68
7.2.60.0080.00417.05
7.2.50.0110.00416.76
7.2.40.0030.01316.77
7.2.30.0060.00617.07
7.2.20.0060.00316.88
7.2.10.0030.01416.89
7.2.00.0090.00517.98
7.1.330.0030.01015.79
7.1.320.0000.00815.46
7.1.310.0060.00315.72
7.1.300.0030.00915.49
7.1.290.0080.00415.79
7.1.280.0000.01415.87
7.1.270.0030.00915.68
7.1.260.0060.00615.98
7.1.250.0070.00415.88
7.1.240.0000.01215.95
7.1.230.0060.00315.61
7.1.220.0110.00415.47
7.1.210.0040.00715.65
7.1.200.0040.00615.89
7.1.190.0070.01015.86
7.1.180.0030.01015.80
7.1.170.0060.00915.84
7.1.160.0040.00815.90
7.1.150.0110.00015.94
7.1.140.0070.00715.82
7.1.130.0030.01215.91
7.1.120.0030.01015.82
7.1.110.0030.01215.65
7.1.100.0070.00816.93
7.1.90.0030.01215.65
7.1.80.0030.01215.68
7.1.70.0020.00816.51
7.1.60.0080.01217.49
7.1.50.0090.00716.18
7.1.40.0090.00615.86
7.1.30.0070.01015.66
7.1.20.0100.00715.72
7.1.10.0070.00715.75
7.1.00.0050.04219.04
7.0.330.0080.00315.18
7.0.320.0090.00615.40
7.0.310.0040.00815.46
7.0.300.0080.00515.20
7.0.290.0030.01015.47
7.0.280.0050.00515.47
7.0.270.0060.00815.05
7.0.260.0060.00915.45
7.0.250.0000.01215.43
7.0.240.0030.01215.43
7.0.230.0070.00715.27
7.0.220.0090.00315.55
7.0.210.0040.00415.44
7.0.200.0020.00915.96
7.0.190.0110.00615.46
7.0.180.0070.00715.42
7.0.170.0040.01215.39
7.0.160.0120.00315.14
7.0.150.0070.00715.44
7.0.140.0100.00615.25
7.0.130.0070.00715.57
7.0.120.0070.00715.55
7.0.110.0030.00615.52
7.0.100.0070.00715.53
7.0.90.0030.00715.59
7.0.80.0030.01015.20
7.0.70.0080.00615.36
7.0.60.0080.04018.52
7.0.50.0080.02516.49
7.0.40.0020.04716.62
7.0.30.0120.04216.80
7.0.20.0130.03316.92
7.0.10.0180.03116.82
7.0.00.0080.02816.79
5.6.400.0030.00614.26
5.6.390.0070.01014.19
5.6.380.0000.01014.34
5.6.370.0000.01414.60
5.6.360.0030.00914.32
5.6.350.0090.00314.29
5.6.340.0090.00314.41
5.6.330.0090.00614.26
5.6.320.0040.00814.34
5.6.310.0110.00414.14
5.6.300.0060.00914.00
5.6.290.0040.00814.04
5.6.280.0030.04217.57
5.6.270.0000.01414.49
5.6.260.0080.00814.44
5.6.250.0000.01014.36
5.6.240.0040.01114.39
5.6.230.0040.00714.22
5.6.220.0110.00414.13
5.6.210.0120.03517.56
5.6.200.0070.04016.26
5.6.190.0050.04517.52
5.6.180.0170.04517.40
5.6.170.0210.02617.26
5.6.160.0050.02417.27
5.6.150.0070.04216.21
5.6.140.0080.04016.21
5.6.130.0050.04516.29
5.6.120.0030.02517.75
5.6.110.0050.05117.61
5.6.100.0060.04317.83
5.6.90.0030.04817.70
5.6.80.0070.04317.39
5.6.70.0050.00314.04
5.6.60.0100.00314.41
5.6.50.0150.00014.32
5.6.40.0110.00314.19
5.6.30.0000.00814.15
5.6.20.0000.01214.37
5.6.10.0030.00714.26
5.6.00.0030.01214.19
5.5.380.0000.01214.39
5.5.370.0030.01014.11
5.5.360.0000.00914.18
5.5.350.1600.02317.22
5.5.340.0050.04316.16
5.5.330.0030.04317.44
5.5.320.0170.03217.28
5.5.310.0130.04317.09
5.5.300.0070.02016.00
5.5.290.0030.02316.10
5.5.280.0100.02917.34
5.5.270.0060.04217.52
5.5.260.0080.04617.46
5.5.250.0050.02217.44
5.5.240.0130.03217.32
5.5.230.0000.00914.33
5.5.220.0000.00814.29
5.5.210.0030.00514.25
5.5.200.0130.00313.93
5.5.190.0060.01013.95
5.5.180.0110.00314.37
5.5.170.0040.00814.14
5.5.160.0090.00614.06
5.5.150.0030.01014.19
5.5.140.0060.00914.34
5.5.130.0060.00614.29
5.5.120.0080.00314.27
5.5.110.0090.00614.31
5.5.100.0000.01713.98
5.5.90.0040.01214.29
5.5.80.0030.01413.99
5.5.70.0070.01014.41
5.5.60.0000.01514.09
5.5.50.0050.00514.11
5.5.40.0030.00814.27
5.5.30.0030.01114.10
5.5.20.0080.00313.95
5.5.10.0090.00614.30
5.5.00.0070.01014.26

preferences:
67.12 ms | 401 KiB | 5 Q