3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputs = [ 'invalid', 'true', 'false', 'null', '17', '17.19', '{"foo":"bar"}', '[{"foo":"bar"}]', '{"0":"foo","bar":{"17":"baz"}}', ]; foreach ($inputs as $input) { var_dump(json_decode($input)); }
Output for git.master, git.master_jit, rfc.property-hooks
NULL bool(true) bool(false) NULL int(17) float(17.19) object(stdClass)#1 (1) { ["foo"]=> string(3) "bar" } array(1) { [0]=> object(stdClass)#1 (1) { ["foo"]=> string(3) "bar" } } object(stdClass)#1 (2) { ["0"]=> string(3) "foo" ["bar"]=> object(stdClass)#2 (1) { ["17"]=> string(3) "baz" } }

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:
114.9 ms | 406 KiB | 5 Q