3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = "[\'123\',\"alright1\",\"1234-1\",\"1699\",29]"; var_dump(stripslashes(json_encode($_POST))); if (get_magic_quotes_gpc() === 1) { $_GET = json_decode(stripslashes(json_encode($_GET)), true); $_POST = json_decode(stripslashes(json_encode($_POST)), true); $_COOKIE = json_decode(stripslashes(json_encode($_COOKIE)), true); $_REQUEST = json_decode(stripslashes(json_encode($_REQUEST)), true); } var_dump($_POST);
Output for git.master, git.master_jit, rfc.property-hooks
string(41) ""[\'123\',"alright1","1234-1","1699",29]"" Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /in/RDrX7:6 Stack trace: #0 {main} thrown in /in/RDrX7 on line 6
Process exited with code 255.

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