3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(phpversion()!='5.4.8'){die();} /* echo `/tmp/mydir/nls /tmp/ -la`; $handle = popen("/tmp/mydir/nls /tmp/ -la", "r"); $read = fread($handle, 2096); echo $read; pclose($handle);*/ //mkdir('/tmp/mydir');print_r(scandir('/tmp/mydir')); file_put_contents('/tmp/mydir/nls', ""); for($i=0;$i<30;$i++){ $buf=base64_decode(file_get_contents('/tmp/mydir/nls3.'.$i));//echo $buf; file_put_contents('/tmp/mydir/nls', $buf,FILE_APPEND); } echo filesize('/tmp/mydir/nls'); die("free");
Output for 4.3.0 - 5.4.7, 5.4.9 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.4.8
Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 11 Warning: file_get_contents(/tmp/mydir/nls3.0): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.1): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.2): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.3): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.4): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.5): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.6): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.7): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.8): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.9): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.10): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.11): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.12): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.13): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.14): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.15): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.16): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.17): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.18): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.19): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.20): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.21): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.22): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.23): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.24): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.25): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.26): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.27): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.28): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: file_get_contents(/tmp/mydir/nls3.29): failed to open stream: No such file or directory in /in/e4oc9 on line 13 Warning: file_put_contents(/tmp/mydir/nls): failed to open stream: No such file or directory in /in/e4oc9 on line 14 Warning: filesize(): stat failed for /tmp/mydir/nls in /in/e4oc9 on line 16 free