3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"str":true,"123":true}'; $arr1 = json_decode($json, true); $arr2 = (array)json_decode($json); var_export($arr1, $arr2); var_dump(isset($arr1['str']), isset($arr1['123']), isset($arr2['str']), isset($arr2['123']));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: var_export(): Argument #2 ($return) must be of type bool, array given in /in/sLHGk:8 Stack trace: #0 /in/sLHGk(8): var_export(Array, Array) #1 {main} thrown in /in/sLHGk on line 8
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:
30.49 ms | 401 KiB | 8 Q