3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mm = fopen("index.php","w"); fwrite($mm,"Fuck off");
Output for 7.3.0alpha1 - 7.3.0beta1
Warning: fopen(index.php): failed to open stream: Permission denied in /in/rG4Qg on line 2 Warning: fwrite() expects parameter 1 to be resource, bool given in /in/rG4Qg on line 3
Output for 7.1.20 - 7.2.8
Warning: fopen(): open_basedir restriction in effect. File(index.php) is not within the allowed path(s): (/tmp:/in) in /in/rG4Qg on line 2 Warning: fopen(index.php): failed to open stream: Operation not permitted in /in/rG4Qg on line 2 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/rG4Qg on line 3
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.10
Warning: fopen(index.php): failed to open stream: Permission denied in /in/rG4Qg on line 2 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/rG4Qg on line 3
Output for hhvm-3.22.0
Warning: Permission denied in /in/rG4Qg on line -1 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/rG4Qg on line -1
Output for hhvm-3.18.5 - 3.21.3
Warning: Permission denied in /in/rG4Qg on line 2 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/rG4Qg on line 3