3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array['test'] = 4; $array['test2']['test'] = 'test'; $array['test2']['test3'] = 'test4'; print_r($array); $json_array = json_encode($array); print_r($json_array); $json_array_decode = json_decode($json_array); print_r($json_array_code);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [test] => 4 [test2] => Array ( [test] => test [test3] => test4 ) ) {"test":4,"test2":{"test":"test","test3":"test4"}} Warning: Undefined variable $json_array_code in /in/SseFF on line 15

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:
43.78 ms | 401 KiB | 8 Q