3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array(); $test["abc"] = true; $test["abc"] = $test["abc"] ? $test["abc"] : false; $data = json_encode($test); $test = json_decode($data); echo $test;
based on Kau55
Output for 7.1.0 - 7.2.0
Recoverable fatal error: Object of class stdClass could not be converted to string in /in/51oit on line 8
Process exited with code 255.
Output for 5.5.0 - 7.0.20
Catchable fatal error: Object of class stdClass could not be converted to string in /in/51oit on line 8
Process exited with code 255.