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);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 1 [1] => 2 [2] => 3 ) Warning: Cannot modify header information - headers already sent by (output started at /in/0fn8Y:14) in /in/0fn8Y on line 19 Warning: Cannot modify header information - headers already sent by (output started at /in/0fn8Y:14) in /in/0fn8Y on line 21 Warning: Cannot modify header information - headers already sent by (output started at /in/0fn8Y:14) in /in/0fn8Y on line 23 Warning: readfile(): php_network_getaddresses: getaddrinfo for www.javatpoint.com failed: System error in /in/0fn8Y on line 25 Warning: readfile(http://www.javatpoint.com/f.txt): Failed to open stream: php_network_getaddresses: getaddrinfo for www.javatpoint.com failed: System error in /in/0fn8Y on line 25

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
65.39 ms | 402 KiB | 8 Q