3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr='[2,5,"test"]'; $cat_limit = json_decode($arr, true);var_dump($cat_limit); echo implode($cat_limit, ','); $arr2='{"luo":{"item_id": 21,"title": "可口可乐600ml"},"tt":{"item_id": 22,"title": "可口可乐600ml"}}'; $cat_limit = json_decode($arr2, true);var_dump($cat_limit); unset($arr[5]); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> int(2) [1]=> int(5) [2]=> string(4) "test" } Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /in/XhL2N:4 Stack trace: #0 /in/XhL2N(4): implode(Array, ',') #1 {main} thrown in /in/XhL2N on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.05 ms | 401 KiB | 8 Q