3v4l.org

run code in 300+ PHP versions simultaneously
<?php $null = json_decode(json_encode(null)); var_dump($null, json_last_error()); $null = json_decode(null); var_dump($null, json_last_error()); $false = json_decode(json_encode(false)); var_dump($false, json_last_error()); $false = json_decode(false); var_dump($false, json_last_error());
Output for git.master, git.master_jit, rfc.property-hooks
NULL int(0) Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /in/Oq7sE on line 6 NULL int(4) bool(false) int(0) NULL int(4)

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:
161.11 ms | 405 KiB | 5 Q