3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $samplerequesturi = 'string(42) "{"ERROR_MSG":"Invalid path for user raol"}" '; $samplerequesturi = preg_replace('@^string\(\d{1,4}\)@', '', $samplerequesturi); var_dump($samplerequesturi); $js = json_decode($samplerequesturi, true); var_dump($js);
Output for 5.2.0, 5.2.9 - 7.1.0
string(46) " "{"ERROR_MSG":"Invalid path for user raol"}" " NULL
Output for 5.2.1 - 5.2.8
string(46) " "{"ERROR_MSG":"Invalid path for user raol"}" " string(46) " "{"ERROR_MSG":"Invalid path for user raol"}" "
Output for 5.0.0 - 5.1.6
string(46) " "{"ERROR_MSG":"Invalid path for user raol"}" " <br /> <b>Fatal error</b>: Call to undefined function json_decode() in <b>/in/4pdAn</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(46) " "{"ERROR_MSG":"Invalid path for user raol"}" " <br /> <b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/4pdAn</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(46) " "{"ERROR_MSG":"Invalid path for user raol"}" " <br /> <b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/4pdAn</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(46) " "{"ERROR_MSG":"Invalid path for user raol"}" " <br /> <b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/4pdAn</b> on line <b>5</b><br />