3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc{ protected const A = [1, 2, 3]; public static function abcd(){ return abc::A; } } print_r(abc::abcd()); $file_url = 'http://www.javatpoint.com/f.txt'; header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: utf-8"); header("Content-disposition: attachment; filename=\"" . basename($file_url) . "\""); readfile($file_url);

preferences:
61.82 ms | 402 KiB | 5 Q