3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = '{"items": [{"id":"1","food":"rice","Amount":"100","condition":"paid"},\ {"id":"2","food":"beans","Amount":"200","condition":"paid"},\ {"id":"3","food":"yam","Amount":"50","condition":"not paid"},\ {"id":"4","food":"tomatoes","Amount":"100","condition":"paid"},\ {"id":"5","food":"potato","Amount":"700","condition":"paid"}]}'; $arr = json_decode(stripslashes($response), true); var_dump($arr); echo $arr['items'][1]['food']; // beans

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.5.00.0140.00819.94
8.4.150.0030.00014.05
8.4.140.0140.01017.94
8.4.130.0140.00617.60
8.4.120.0140.00620.65
8.4.110.0050.01118.58
8.4.100.0100.01017.90
8.4.90.0160.00522.68
8.4.80.0130.00720.76
8.4.70.0030.00419.05
8.4.60.0150.00820.63
8.4.50.0150.00618.46
8.4.40.0100.00719.63
8.4.30.0160.00317.58
8.4.20.0150.00619.27
8.4.10.0160.00317.58
8.3.280.0150.00518.46
8.3.270.0120.00816.48
8.3.260.0130.00616.38
8.3.250.0100.00918.86
8.3.240.0100.01016.59
8.3.230.0110.00816.38
8.3.220.0040.00919.00
8.3.210.0070.00816.65
8.3.200.0050.00416.59
8.3.190.0070.00117.29
8.3.180.0110.00818.70
8.3.170.0050.00317.20
8.3.160.0080.00016.51
8.3.150.0060.01017.19
8.3.140.0040.00416.59
8.3.130.0080.00018.36
8.3.120.0080.01218.94
8.3.110.0040.00420.94
8.3.100.0100.00024.06
8.3.90.0040.00426.77
8.3.80.0060.00316.50
8.3.70.0160.00616.58
8.3.60.0130.00318.43
8.3.50.0120.00217.30
8.3.40.0110.00418.71
8.3.30.0090.00918.76
8.3.20.0000.00818.93
8.3.10.0090.00023.48
8.3.00.0040.00423.52
8.2.290.0090.01017.05
8.2.280.0080.00820.13
8.2.270.0050.00317.00
8.2.260.0140.00419.11
8.2.250.0090.00618.29
8.2.240.0160.00018.74
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0000.00916.38
8.2.190.0090.00616.58
8.2.180.0110.00718.54
8.2.170.0040.01118.66
8.2.160.0050.00822.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0100.00018.95
8.2.110.0000.01022.11
8.2.100.0040.00817.91
8.2.90.0040.00417.91
8.2.80.0080.00018.97
8.2.70.0060.00318.05
8.2.60.0080.00017.93
8.2.50.0000.00818.10
8.2.40.0040.00421.26
8.2.30.0040.00419.32
8.2.20.0000.00818.17
8.2.10.0040.00419.50
8.2.00.0040.00419.33
8.1.330.0130.00615.98
8.1.320.0120.00816.09
8.1.310.0090.00918.12
8.1.300.0050.00520.05
8.1.290.0060.00618.88
8.1.280.0040.01825.92
8.1.270.0040.00420.38
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00322.63
8.1.230.0120.00021.03
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0060.00317.11
8.1.180.0040.00418.10
8.1.170.0040.00418.82
8.1.160.0030.00618.83
8.1.150.0040.00418.82
8.1.140.0000.00717.70
8.1.130.0030.00319.01
8.1.120.0040.00417.29
8.1.110.0020.00517.39
8.1.100.0080.00017.33
8.1.90.0040.00417.36
8.1.80.0030.00717.37
8.1.70.0000.00717.28
8.1.60.0000.00917.52
8.1.50.0030.00717.32
8.1.40.0000.00817.45
8.1.30.0080.00017.59
8.1.20.0000.00817.56
8.1.10.0020.00517.48
8.1.00.0000.00717.57
8.0.300.0050.00220.08
8.0.290.0030.00516.63
8.0.280.0040.00418.51
8.0.270.0070.00017.33
8.0.260.0070.00017.27
8.0.250.0000.00816.87
8.0.240.0050.00216.93
8.0.230.0040.00416.83
8.0.220.0030.00316.72
8.0.210.0070.00016.82
8.0.200.0000.00716.73
8.0.190.0040.00416.74
8.0.180.0030.00516.74
8.0.170.0040.00416.90
8.0.160.0000.00716.96
8.0.150.0030.00516.79
8.0.140.0000.00716.68
8.0.130.0030.00313.29
8.0.120.0050.00316.81
8.0.110.0000.00716.75
8.0.100.0050.00316.70
8.0.90.0000.00716.85
8.0.80.0120.00516.83
8.0.70.0040.00416.84
8.0.60.0040.00416.80
8.0.50.0070.00016.62
8.0.30.0130.01317.17
8.0.20.0090.01217.40
8.0.10.0050.00216.92
8.0.00.0140.00516.75
7.4.330.0030.00315.55
7.4.320.0030.00316.34
7.4.300.0000.00616.56
7.4.290.0030.00316.52
7.4.280.0040.00416.53
7.4.270.0030.00916.44
7.4.260.0000.00716.52
7.4.250.0070.00016.43
7.4.240.0020.00516.47
7.4.230.0050.00316.36
7.4.220.0020.00516.32
7.4.210.0060.00816.52
7.4.200.0070.00016.43
7.4.160.0140.00716.48
7.4.140.0120.01017.86
7.4.130.0190.00016.35
7.4.120.0140.00516.58
7.4.110.0130.00816.56
7.4.100.0110.00816.58
7.4.90.0120.01216.40
7.4.80.0220.00319.39
7.4.70.0140.00316.42
7.4.60.0100.01016.30
7.4.50.0060.00916.56
7.4.40.0110.00816.29
7.4.10.0060.00914.91
7.4.00.0070.00815.05
7.3.330.0020.00213.16
7.3.320.0060.00012.94
7.3.310.0050.00216.21
7.3.300.0030.00316.23
7.3.290.0040.00416.16
7.3.280.0090.00616.31
7.3.260.0140.00516.33
7.3.240.0140.00816.52
7.3.230.0150.01016.67
7.3.210.0140.01116.17
7.3.200.0110.00816.35
7.3.190.0060.01016.58
7.3.180.0030.01516.55
7.3.170.0140.00316.17
7.3.160.0050.01216.22
7.3.130.0030.01714.82
7.3.120.0090.00914.50
7.3.110.0000.01714.93
7.3.100.0030.01214.90
7.3.90.0060.01114.95
7.3.80.0070.01014.59
7.3.70.0090.00614.72
7.3.60.0070.00714.58
7.3.50.0060.00314.59
7.3.40.0030.01314.64
7.3.30.0070.01114.82
7.3.20.0000.01616.68
7.3.10.0060.00616.45
7.3.00.0090.00616.61
7.2.330.0030.01516.58
7.2.320.0140.01116.43
7.2.310.0120.00916.68
7.2.300.0090.01316.30
7.2.290.0120.00816.44
7.2.260.0040.01514.74
7.2.250.0070.01315.16
7.2.240.0030.00914.68
7.2.230.0060.00914.92
7.2.220.0060.01214.91
7.2.210.0070.01014.63
7.2.200.0070.00714.79
7.2.190.0000.01315.04
7.2.180.0080.01215.05
7.2.170.0110.00814.77
7.2.160.0070.00714.73
7.2.150.0100.00716.84
7.2.140.0130.00016.58
7.2.130.0070.01016.76
7.2.120.0080.00316.79
7.2.110.0030.01016.68
7.2.100.0070.00416.82
7.2.90.0090.00617.12
7.2.80.0300.01015.85
7.2.70.0340.01115.97
7.2.60.0350.01115.86
7.2.50.0460.01116.03
7.2.40.0380.01116.03
7.2.30.0310.00415.77
7.2.20.0300.00515.90
7.2.10.0300.00615.77
7.2.00.0410.00715.76
7.1.330.0070.00715.34
7.1.320.0060.00315.71
7.1.310.0070.00715.84
7.1.300.0030.01015.88
7.1.290.0030.01215.70
7.1.280.0000.01815.71
7.1.270.0030.00915.70
7.1.260.0040.01115.84
7.1.250.0030.00915.77
7.1.240.0030.00615.84
7.1.230.0040.00415.86
7.1.220.0090.00615.49
7.1.210.0070.00715.80
7.1.200.0060.00715.72
7.1.190.0380.01114.91
7.1.180.0340.00614.83
7.1.170.0300.00714.86
7.1.160.0400.00714.78
7.1.150.0310.00514.79
7.1.140.0450.00514.80
7.1.130.0440.00814.81
7.1.120.0420.01014.82
7.1.110.0350.01114.75
7.1.100.0220.01014.81
7.1.90.0450.00614.69
7.1.80.0420.00814.75
7.1.70.0350.00614.63
7.1.60.0240.01823.80
7.1.50.0480.00823.65
7.1.40.0400.00523.65
7.1.30.0390.00723.72
7.1.20.0350.01123.75
7.1.10.0400.00914.78
7.1.00.0270.00714.92
7.0.330.0080.00615.42
7.0.320.0030.01015.25
7.0.310.0090.00615.22
7.0.300.0100.00415.11
7.0.290.0000.00815.38
7.0.280.0080.00315.23
7.0.270.0070.01115.31
7.0.260.0060.00915.23
7.0.250.0070.00715.14
7.0.240.0040.00815.48
7.0.230.0060.00615.45
7.0.220.0070.00415.04
7.0.210.0030.00515.48
7.0.200.0030.00915.44
7.0.190.0030.00715.32
7.0.180.0070.00715.39
7.0.170.0080.00415.43
7.0.160.0100.00615.27
7.0.150.0030.00515.11
7.0.140.0030.01015.18
7.0.130.0040.01115.28
7.0.120.0000.00915.20
7.0.110.0090.00615.17
7.0.100.0030.00715.23
7.0.90.0090.00615.43
7.0.80.0030.00615.33
7.0.70.0110.00415.26
7.0.60.0030.01015.11
7.0.50.0000.01215.19
7.0.40.0060.00913.37
7.0.30.0080.00413.19
7.0.20.0000.00913.43
7.0.10.0100.00313.48
7.0.00.0040.00713.49
5.6.400.0060.00614.06
5.6.390.0060.00314.44
5.6.380.0070.00714.20
5.6.370.0030.01314.33
5.6.360.0090.00014.21
5.6.350.0000.01414.43
5.6.340.0060.00614.10
5.6.330.0060.00614.19
5.6.320.0000.01714.23
5.6.310.0070.01114.32
5.6.300.0000.01214.22
5.6.290.0050.00514.27
5.6.280.0120.00414.02
5.6.270.0060.00314.34
5.6.260.0000.01714.61
5.6.250.0110.00314.11
5.6.240.0090.00414.43
5.6.230.0030.00914.11
5.6.220.0060.00914.27
5.6.210.0000.00914.42
5.6.200.0000.01514.34
5.6.190.0060.00514.30
5.6.180.0060.00614.45
5.6.170.0080.00414.26
5.6.160.0030.00714.22
5.6.150.0100.00614.52
5.6.140.0060.00314.33
5.6.130.0080.00614.34
5.6.120.0100.00314.11
5.6.110.0030.00714.32
5.6.100.0070.00714.20
5.6.90.0040.01214.34
5.6.80.0000.01413.93
5.6.70.0060.01014.19
5.6.60.0000.01714.33
5.6.50.0060.00614.50
5.6.40.0040.00713.96
5.6.30.0030.00614.07
5.6.20.0070.00713.92
5.6.10.0060.01014.54
5.6.00.0000.01014.33

preferences:
32.93 ms | 403 KiB | 5 Q