3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler( static fn (int $errno, string $errstr): bool => $errstr === 'Trying to access array offset on value of type null' ); echo null[1]; echo "foo"[4];

preferences:
52.8 ms | 404 KiB | 5 Q