3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\b", "\f", '"'), array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"')); var_dump($jsonReplaces);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(8) { [0]=> string(1) "\" [1]=> string(1) "/" [2]=> string(1) " " [3]=> string(1) " " [4]=> string(1) " " [5]=> string(2) "\b" [6]=> string(1) " " [7]=> string(1) """ } [1]=> array(8) { [0]=> string(2) "\\" [1]=> string(2) "\/" [2]=> string(2) "\n" [3]=> string(2) "\t" [4]=> string(2) "\r" [5]=> string(2) "\b" [6]=> string(2) "\f" [7]=> string(2) "\"" } }

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:
41.96 ms | 402 KiB | 8 Q