3v4l.org

run code in 300+ PHP versions simultaneously
<?php // TEST $arr = json_decode(' [ { "Settings":[], "Fields":[ {"txt":"Name of the product","comment":"","cb":true,"na":false}, {"txt":"Regular price","comment":"","cb":false,"na":false}, {"txt":"1-Day Deal price","comment":"","cb":false,"na":false}, {"txt":"Clearance price","comment":"","cb":false,"na":false}, {"txt":"Copy","comment":"","cb":true,"na":false}, {"txt":"SKU is created and live","comment":"","cb":true,"na":false}, {"txt":"Colors available","comment":"","cb":true,"na":false}, {"txt":"Subject line","comment":"","cb":true,"na":false}, {"txt":"Coupon code","comment":"","cb":false,"na":false}, {"txt":"Coupon code - start date","comment":"","cb":false,"na":false}, {"txt":"Disclaimer verbiage within email","comment":"","cb":true,"na":false}, {"txt":"Disclaimer verbiage within MailChimp","comment":"","cb":true,"na":false}, {"txt":"Distributing to the correct email lists","comment":"","cb":true,"na":false}, {"txt":"Masthead Creative and Copy","comment":"","cb":true,"na":false}, {"txt":"Promo Graphic Creative and Copy","comment":"","cb":false,"na":false} ], "Others":[ {"txt":"Additional Comments","val":"gfdgfd"} ] } ] ', true); //print $arr[0][Fields][0][txt]; foreach($arr[0][Fields] as $key) { echo $key[txt]; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "Fields" in /in/rTdgM:32 Stack trace: #0 {main} thrown in /in/rTdgM on line 32
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:
45.28 ms | 401 KiB | 8 Q