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($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.10.0120.00616.72
8.5.00.0130.00919.99
8.4.160.0130.00823.71
8.4.150.0020.00114.05
8.4.140.0110.00917.70
8.4.130.0070.00317.70
8.4.120.0110.00920.48
8.4.110.0070.00219.51
8.4.100.0110.00817.71
8.4.90.0160.00418.59
8.4.80.0110.00217.77
8.4.70.0120.00817.74
8.4.60.0100.00718.83
8.4.50.0120.00619.40
8.4.40.0100.01019.47
8.4.30.0100.01017.64
8.4.20.0150.00619.49
8.4.10.0130.00717.68
8.3.280.0110.01018.32
8.3.270.0130.00716.63
8.3.260.0130.00616.46
8.3.250.0090.01018.78
8.3.240.0110.00616.67
8.3.230.0130.00816.73
8.3.220.0130.00317.11
8.3.210.0100.00716.63
8.3.200.0040.00416.38
8.3.190.0110.00716.79
8.3.180.0070.00116.32
8.3.170.0060.00918.58
8.3.160.0030.01518.54
8.3.150.0160.00620.49
8.3.140.0120.00816.60
8.3.130.0040.00416.46
8.3.120.0040.00420.59
8.3.110.0050.00320.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0150.00317.93
8.3.60.0070.01118.43
8.3.50.0100.00317.16
8.3.40.0140.00018.79
8.3.30.0070.01418.84
8.3.20.0030.00519.17
8.3.10.0040.00423.48
8.3.00.0040.00423.64
8.2.290.0090.01016.78
8.2.280.0150.00319.01
8.2.270.0100.00717.33
8.2.260.0130.00620.81
8.2.250.0000.00816.71
8.2.240.0090.00917.00
8.2.230.0040.00722.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0000.00916.38
8.2.190.0090.00616.75
8.2.180.0160.00018.56
8.2.170.0080.01119.13
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00020.80
8.2.110.0060.00320.94
8.2.100.0090.00317.78
8.2.90.0040.00417.97
8.2.80.0050.00317.97
8.2.70.0080.00317.90
8.2.60.0080.00018.22
8.2.50.0000.00818.10
8.2.40.0040.00419.48
8.2.30.0030.00519.21
8.2.20.0000.00718.06
8.2.10.0070.00019.47
8.2.00.0050.00219.34
8.1.330.0090.01015.74
8.1.320.0080.00416.20
8.1.310.0110.00416.67
8.1.300.0080.00017.87
8.1.290.0100.00330.84
8.1.280.0170.00325.92
8.1.270.0030.00622.13
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.45
8.1.230.0040.00720.87
8.1.220.0040.00417.76
8.1.210.0030.00618.77
8.1.200.0040.00417.10
8.1.190.0070.00317.11
8.1.180.0040.00418.10
8.1.170.0030.00518.49
8.1.160.0080.00018.86
8.1.150.0000.00718.82
8.1.140.0040.00417.86
8.1.130.0070.00018.99
8.1.120.0030.00617.39
8.1.110.0040.00417.38
8.1.100.0000.00817.26
8.1.90.0020.00517.39
8.1.80.0030.00617.40
8.1.70.0040.00417.37
8.1.60.0080.00017.52
8.1.50.0040.00717.47
8.1.40.0030.00517.46
8.1.30.0000.00817.45
8.1.20.0000.00817.57
8.1.10.0040.00417.54
8.1.00.0040.00417.51
8.0.300.0040.00419.78
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0070.00017.16
8.0.260.0040.00418.30
8.0.250.0030.00316.89
8.0.240.0070.00016.95
8.0.230.0000.00816.77
8.0.220.0000.00716.81
8.0.210.0040.00416.84
8.0.200.0000.00716.79
8.0.190.0040.00416.84
8.0.180.0080.00016.88
8.0.170.0060.00316.83
8.0.160.0030.00616.78
8.0.150.0030.00516.78
8.0.140.0030.00416.78
8.0.130.0030.00313.26
8.0.120.0080.00016.80
8.0.110.0030.00516.81
8.0.100.0040.00416.84
8.0.90.0000.00716.86
8.0.80.0070.00916.75
8.0.70.0000.00716.79
8.0.60.0000.00716.93
8.0.50.0000.00716.67
8.0.30.0150.01016.96
8.0.20.0100.01217.40
8.0.10.0000.00716.91
8.0.00.0110.00716.91
7.4.330.0040.00415.55
7.4.320.0000.00716.52
7.4.300.0000.00716.57
7.4.290.0000.00716.53
7.4.280.0040.00416.34
7.4.270.0030.00616.55
7.4.260.0000.00716.56
7.4.250.0050.00316.53
7.4.240.0030.00316.53
7.4.230.0000.00716.29
7.4.220.0060.00316.46
7.4.210.0050.01216.43
7.4.200.0070.00016.63
7.4.160.0100.00916.45
7.4.140.0130.00917.86
7.4.130.0110.00816.58
7.4.120.0100.00816.51
7.4.110.0080.01116.33
7.4.100.0170.00316.40
7.4.90.0110.00816.59
7.4.80.0050.01619.39
7.4.70.0110.00816.53
7.4.60.0090.00916.37
7.4.50.0000.01416.57
7.4.40.0120.00916.41
7.4.00.0070.00914.72
7.3.330.0030.00313.03
7.3.320.0030.00313.12
7.3.310.0030.00316.29
7.3.300.0000.00716.05
7.3.290.0000.00716.25
7.3.280.0110.00516.26
7.3.260.0140.00816.34
7.3.240.0100.01016.40
7.3.230.0100.00916.45
7.3.210.0160.00316.31
7.3.200.0130.00616.36
7.3.190.0060.01216.22
7.3.180.0040.01216.43
7.3.170.0150.00316.27
7.3.160.0050.01016.32
7.3.120.0090.00915.09
7.3.110.0000.01514.73
7.3.100.0100.00714.80
7.3.90.0030.01314.69
7.3.80.0100.00714.45
7.3.70.0060.00314.84
7.3.60.0040.01114.45
7.3.50.0090.00614.51
7.3.40.0030.01014.82
7.3.30.0000.00814.52
7.3.20.0000.00916.64
7.3.10.0000.01216.70
7.3.00.0060.00616.62
7.2.330.0090.00916.37
7.2.320.0110.00816.77
7.2.310.0110.00816.70
7.2.300.0060.01216.31
7.2.290.0120.00616.21
7.2.250.0110.00715.21
7.2.240.0130.00614.60
7.2.230.0030.01314.98
7.2.220.0100.00315.07
7.2.210.0100.00714.91
7.2.200.0090.00614.87
7.2.190.0040.01114.98
7.2.180.0050.00514.87
7.2.170.0070.00715.01
7.2.130.0040.00716.89
7.2.120.0060.00616.95
7.2.110.0000.00917.02
7.2.100.0060.00316.89
7.2.90.0000.01116.80
7.2.80.0260.01215.78
7.2.70.0240.00815.87
7.2.60.0250.01116.02
7.2.50.0250.00416.05
7.2.40.0190.01215.98
7.2.30.0270.00615.92
7.2.20.0220.00815.91
7.2.10.0230.00915.84
7.2.00.0710.00715.75
7.1.330.0000.01615.96
7.1.320.0090.00615.65
7.1.310.0060.00615.85
7.1.300.0030.00915.46
7.1.290.0000.01115.77
7.1.280.0030.00715.63
7.1.270.0040.00415.85
7.1.260.0040.01115.47
7.1.250.0030.01015.79
7.1.240.0000.01515.74
7.1.230.0070.00715.90
7.1.220.0120.00015.52
7.1.210.0110.00015.52
7.1.200.0100.00315.83
7.1.190.0370.00414.87
7.1.180.0330.00514.96
7.1.170.0220.00714.85
7.1.160.0180.01014.81
7.1.150.0330.00614.89
7.1.140.0210.00614.56
7.1.130.0350.00614.63
7.1.120.0190.00914.62
7.1.110.0170.01114.83
7.1.100.0370.00814.81
7.1.90.0330.01014.88
7.1.80.0350.00614.86
7.1.70.0370.00514.91
7.1.60.0470.00623.81
7.1.50.0490.01323.79
7.1.40.0370.00823.64
7.1.30.0610.00623.65
7.1.20.0540.00623.56
7.1.10.0450.00514.57
7.1.00.0230.00814.91
7.0.330.0080.00415.46
5.6.380.0120.00014.46

preferences:
38.92 ms | 403 KiB | 5 Q