3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "Parameter1":"<style> #label-9 { display: block; text-align: left; color: #fff; } </style>", "HistoryPosition":"1" }'; // remove the newlines and replace them with the literal JS newline $clean = str_replace(["\r", "\n"], ['', ''], $json); var_dump(json_decode($clean));
Output for git.master, git.master_jit, rfc.property-hooks
object(stdClass)#1 (2) { ["Parameter1"]=> string(200) "<style> #label-9 { display: block; text-align: left; color: #fff; } </style>" ["HistoryPosition"]=> string(1) "1" }

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.39 ms | 402 KiB | 8 Q