3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $plik = file('elitehackers.pl/ComVS/bot/linki.txt'); unset($plik[3]); // nr linu do skasowania $f = fopen('elitehackers.pl/ComVS/bot/linki.txt', 'w'); foreach($plik as $linia){ fputs($f, $linia); } fclose($f); ?>
Output for 5.3.0 - 7.1.0
Warning: file(elitehackers.pl/ComVS/bot/linki.txt): failed to open stream: No such file or directory in /in/kglRP on line 2 Warning: fopen(elitehackers.pl/ComVS/bot/linki.txt): failed to open stream: No such file or directory in /in/kglRP on line 4 Warning: Invalid argument supplied for foreach() in /in/kglRP on line 5 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/kglRP on line 8
Output for 4.3.2 - 4.3.10, 4.4.0 - 5.2.17
Warning: file(elitehackers.pl/ComVS/bot/linki.txt): failed to open stream: No such file or directory in /in/kglRP on line 2 Warning: fopen(elitehackers.pl/ComVS/bot/linki.txt): failed to open stream: No such file or directory in /in/kglRP on line 4 Warning: Invalid argument supplied for foreach() in /in/kglRP on line 5 Warning: fclose(): supplied argument is not a valid stream resource in /in/kglRP on line 8
Output for 4.3.11
Warning: file(elitehackers.pl/ComVS/bot/linki.txt): failed to open stream: No such file or directory in /in/kglRP on line 2 Warning: fopen(elitehackers.pl/ComVS/bot/linki.txt): failed to open stream: No such file or directory in /in/kglRP on line 4 Warning: fclose(): supplied argument is not a valid stream resource in /in/kglRP on line 8
Output for 4.3.0 - 4.3.1
Warning: file(elitehackers.pl/ComVS/bot/linki.txt) [http://www.php.net/function.file]: failed to create stream: No such file or directory in /in/kglRP on line 2 Warning: fopen(elitehackers.pl/ComVS/bot/linki.txt) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/kglRP on line 4 Warning: Invalid argument supplied for foreach() in /in/kglRP on line 5 Warning: fclose(): supplied argument is not a valid stream resource in /in/kglRP on line 8