3v4l.org

run code in 500+ 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'";

preferences:
144.13 ms | 1971 KiB | 5 Q