3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "PHP Version: " . PHP_VERSION . "\n"; try { $v = new DateTime(); $v = (string) $v; } catch (Error $e) { echo "Caught 'Catchable fatal error' with message: " . $e->getMessage(); die(); } echo "Did not catch 'Catchable fatal error'";

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
212.94 ms | 2580 KiB | 8 Q