3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new Exception(); // This line cause problem :( // Comment it to see the difference. // (string) $e; // This line show the clue (PHP Warning: ...). var_export($e); // This line will be affected. var_export(json_encode([$e])); // But This line still OK. var_export(json_encode($e));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
152.18 ms | 2248 KiB | 10 Q