3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parserOutput = [ 'props' => [], ]; $tplDataRaw = '{"description": "Foo description", "label": "Foo", "baz": "Foo", "lorem": "Foo"}'; $tplData = gzencode($tplDataRaw, 9); echo "raw-strlen: " . strlen($tplDataRaw) . "\n"; echo "comp-strlen: " . strlen($tplData) . "\n"; var_dump(json_decode(gzdecode($tplData))); $parserOutput['props']['tplData'] = $tplData; echo "\n\n"; var_dump(json_encode($parserOutput)); echo json_last_error_msg();
Output for git.master, git.master_jit, rfc.property-hooks
raw-strlen: 80 comp-strlen: 67 object(stdClass)#1 (4) { ["description"]=> string(15) "Foo description" ["label"]=> string(3) "Foo" ["baz"]=> string(3) "Foo" ["lorem"]=> string(3) "Foo" } bool(false) Malformed UTF-8 characters, possibly incorrectly encoded

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