3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $count = 0; if ($handle = opendir('.')) { while (false !== ($entry = readdir($handle))) { $count++; } closedir($handle); } echo $count; echo "<script type=\"text/javascript\">('test')</script>";
Output for 4.3.2 - 7.1.7
Warning: opendir(.): failed to open dir: Permission denied in /in/3uWn5 on line 3 0<script type="text/javascript">('test')</script>
Output for 4.3.0 - 4.3.1
Warning: opendir(.) [http://www.php.net/function.opendir]: failed to open dir: Permission denied in /in/3uWn5 on line 3 0<script type="text/javascript">('test')</script>