3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = error_get_last(); $e = null; echo 'asas'; print_r($e); $e['type'] = isset($e['type']) ? $e['type'] : 0; $e['message'] = isset($e['message']) ? $e['message'] : ''; $e['file'] = isset($e['file']) ? $e['file'] : ''; $e['line'] = isset($e['line']) ? $e['line'] : ''; print_r($e);

preferences:
35.56 ms | 402 KiB | 5 Q