3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uri='http://www.yodlecareers.com/puzzles/triangle.txt'; //$uri='input.txt'; //$file = fopen($uri,'r'); //var_dump($file);die; $rows = file($uri, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); echo count($rows).'\n\n'; var_dump($rows[4]);
Output for git.master, git.master_jit
Warning: file(): php_network_getaddresses: getaddrinfo for www.yodlecareers.com failed: System error in /in/sVvo1 on line 9 Warning: file(http://www.yodlecareers.com/puzzles/triangle.txt): Failed to open stream: php_network_getaddresses: getaddrinfo for www.yodlecareers.com failed: System error in /in/sVvo1 on line 9 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /in/sVvo1:10 Stack trace: #0 {main} thrown in /in/sVvo1 on line 10
Process exited with code 255.
Output for rfc.property-hooks
Warning: file(): php_network_getaddresses: getaddrinfo for www.yodlecareers.com failed: System error in /in/sVvo1 on line 9 Warning: file(http://www.yodlecareers.com/puzzles/triangle.txt): Failed to open stream: php_network_getaddresses: getaddrinfo for www.yodlecareers.com failed: System error in /in/sVvo1 on line 9 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, false given in /in/sVvo1:10 Stack trace: #0 {main} thrown in /in/sVvo1 on line 10
Process exited with code 255.

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:
54.39 ms | 401 KiB | 8 Q