3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = '[{"id":2,"category":"Food%2C%20Drinks%20%26%20Clothes","description":"Nasi%20Lemak%2C%20Teh%20Tarik%20","cost":"5","transactionDate":"2016-10-04"},{"id":3,"category":"Food%2C%20Drinks%20%26%20Clothes","description":"Rori%20Canai","cost":"3"}]'; $data = json_decode($s, true); for ($i = 0; $i < count($data); $i++){ echo "id: ".$data[$i]["id"]. ", desc: ".$data[$i]["description"]. ", cost: ".$data[$i]["cost"] . '<br />'; }

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.30.0110.00620.11
8.5.20.0050.00920.14
8.5.10.0130.00720.25
8.5.00.0120.00921.82
8.4.180.0160.00619.71
8.4.170.0130.00920.45
8.4.160.0120.01023.63
8.4.150.0090.00316.73
8.4.140.0120.01117.52
8.4.130.0120.00817.64
8.4.120.0140.00620.43
8.4.110.0130.00819.06
8.4.100.0140.00717.83
8.4.90.0090.01120.22
8.4.80.0090.01019.16
8.4.70.0110.00618.75
8.4.60.0100.00920.39
8.4.50.0070.00918.85
8.4.40.0100.01017.70
8.4.30.0120.00017.66
8.4.20.0130.00723.91
8.4.10.0070.01319.32
8.3.300.0150.00520.70
8.3.290.0090.01020.72
8.3.280.0080.00416.26
8.3.270.0130.00616.43
8.3.260.0100.00916.41
8.3.250.0120.00719.07
8.3.240.0130.00716.50
8.3.230.0130.00616.62
8.3.220.0070.01019.03
8.3.210.0080.00816.60
8.3.200.0050.00416.64
8.3.190.0120.00816.98
8.3.180.0110.00316.52
8.3.170.0180.00020.83
8.3.160.0090.00917.24
8.3.150.0140.00417.01
8.3.140.0060.00316.58
8.3.130.0090.00016.77
8.3.120.0070.00318.70
8.3.110.0070.00316.41
8.3.100.0090.00916.47
8.3.90.0090.00626.77
8.3.80.0070.00318.30
8.3.70.0030.01716.75
8.3.60.0040.01016.50
8.3.50.0100.00821.09
8.3.40.0130.00718.86
8.3.30.0070.00718.85
8.3.20.0040.00421.91
8.3.10.0080.00020.34
8.3.00.0040.00421.72
8.2.300.0100.01222.27
8.2.290.0080.01017.19
8.2.280.0120.00818.24
8.2.270.0150.00319.04
8.2.260.0060.00316.70
8.2.250.0000.00818.24
8.2.240.0150.00317.17
8.2.230.0050.00320.94
8.2.220.0090.00024.06
8.2.210.0000.00826.77
8.2.200.0040.00416.63
8.2.190.0070.01416.75
8.2.180.0110.01125.92
8.2.170.0120.00322.96
8.2.160.0150.00019.29
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0070.00319.27
8.2.120.0020.00526.35
8.2.110.0030.00722.25
8.2.100.0170.00019.58
8.2.90.0060.00317.75
8.2.80.0030.00517.97
8.2.70.0000.00817.93
8.2.60.0040.00418.16
8.2.50.0060.00318.10
8.2.40.0060.00321.20
8.2.30.0000.00719.38
8.2.20.0000.00718.23
8.2.10.0050.00218.23
8.2.00.0000.00717.75
8.1.340.0130.00621.79
8.1.330.0100.00916.17
8.1.320.0110.00816.25
8.1.310.0090.00916.50
8.1.300.0120.00418.59
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0000.00823.95
8.1.260.0040.00428.09
8.1.250.0090.00028.09
8.1.240.0050.00517.36
8.1.230.0060.00619.00
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0040.00417.00
8.1.180.0060.00318.10
8.1.170.0030.00618.89
8.1.160.0040.00422.14
8.1.150.0040.00418.95
8.1.140.0020.00519.57
8.1.130.0000.00717.57
8.1.120.0040.00417.35
8.1.110.0040.00417.48
8.1.100.0000.00717.41
8.1.90.0000.00717.42
8.1.80.0060.00317.48
8.1.70.0000.00717.49
8.1.60.0050.00217.47
8.1.50.0040.00417.50
8.1.40.0030.00617.58
8.1.30.0040.00417.61
8.1.20.0040.00417.56
8.1.10.0040.00417.57
8.1.00.0040.00417.53
8.0.300.0060.00318.77
8.0.290.0040.00416.73
8.0.280.0000.00718.43
8.0.270.0030.00617.26
8.0.260.0000.00617.31
8.0.250.0030.00316.91
8.0.240.0030.00516.97
8.0.230.0000.00716.91
8.0.220.0070.00316.92
8.0.210.0020.00516.85
8.0.200.0000.00616.84
8.0.190.0070.00016.95
8.0.180.0040.00416.91
8.0.170.0070.00016.83
8.0.160.0000.01116.92
8.0.150.0050.00216.92
8.0.140.0030.00516.77
8.0.130.0000.00713.32
8.0.120.0040.00416.77
8.0.110.0050.00316.74
8.0.100.0040.00416.95
8.0.90.0040.00416.91
8.0.80.0040.01216.86
8.0.70.0070.00016.86
8.0.60.0040.00416.83
8.0.50.0000.00916.91
8.0.30.0060.01117.11
8.0.20.0090.01017.40
8.0.10.0000.00916.88
8.0.00.0090.00916.79
7.4.330.0040.00415.21
7.4.320.0000.00716.60
7.4.300.0000.00716.63
7.4.290.0000.00616.46
7.4.280.0050.00316.63
7.4.270.0070.00016.48
7.4.260.0030.00516.48
7.4.250.0030.00516.36
7.4.240.0040.00416.50
7.4.230.0070.00016.50
7.4.220.0070.01016.56
7.4.210.0060.01016.61
7.4.200.0030.00316.32
7.4.160.0080.00716.39
7.4.150.0040.01417.40
7.4.140.0120.00817.86
7.4.130.0080.01116.50
7.4.120.0070.01216.45
7.4.110.0070.01016.55
7.4.100.0040.01316.42
7.4.90.0040.01416.48
7.4.80.0090.00619.39
7.4.70.0040.01916.35
7.4.60.0040.01216.43
7.4.50.0000.01516.47
7.4.40.0030.01316.60
7.4.30.0070.01016.36
7.4.00.0100.00715.14
7.3.330.0050.00013.29
7.3.320.0050.00013.03
7.3.310.0030.00316.39
7.3.300.0000.00716.37
7.3.290.0110.00816.29
7.3.280.0100.00816.34
7.3.270.0090.00917.40
7.3.260.0140.00516.50
7.3.250.0110.00716.45
7.3.240.0060.01116.45
7.3.230.0090.00916.59
7.3.210.0040.01216.49
7.3.200.0080.00816.58
7.3.190.0100.01016.54
7.3.180.0030.01416.54
7.3.170.0100.01116.64
7.3.160.0110.00916.25
7.2.330.0060.01616.57
7.2.320.0160.00616.44
7.2.310.0110.00716.49
7.2.300.0100.01316.79
7.2.290.0090.00916.60
7.2.60.0090.00316.67
7.2.00.0060.00319.61
7.1.200.0040.00815.78
7.1.70.0060.00917.07
7.1.60.0040.00817.20
7.1.00.0030.07722.35
7.0.200.0030.00714.67
7.0.110.0430.05320.14
7.0.100.0470.07320.26
7.0.90.0330.05720.39
7.0.80.0270.05720.33
7.0.70.0330.05020.22
7.0.60.0270.06020.27
7.0.50.0270.06020.25
7.0.40.0330.05020.36
7.0.30.0200.06320.31
7.0.20.0400.05720.27
7.0.10.0270.05320.34
7.0.00.0230.07320.30
5.6.260.0100.05720.97
5.6.250.0170.06320.96
5.6.240.0100.06720.86
5.6.230.0030.06020.84
5.6.220.0000.06321.04
5.6.210.0070.05720.95
5.6.200.0030.06321.07
5.6.190.0230.04320.98
5.6.180.0170.05021.06
5.6.170.0070.06720.83
5.6.160.0100.06020.80
5.6.150.0100.06321.01
5.6.140.0100.06020.93
5.6.130.0070.06021.03
5.6.120.0000.06321.08
5.6.110.0130.06721.01
5.6.100.0000.07020.78
5.6.90.0130.05321.07
5.6.80.0030.05720.20
5.6.70.0200.04720.38
5.6.60.0170.05020.41
5.6.50.0070.06020.35
5.6.40.0030.06320.30
5.6.30.0130.05020.42
5.6.20.0070.05720.29
5.6.10.0130.05020.38
5.6.00.0130.05720.28

preferences:
46.2 ms | 1512 KiB | 5 Q