3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = 'index.php'; $newfile = 'example.txt'; if (!copy($file, $newfile)) { echo "failed to copy $file...\n"; }
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: copy(index.php): failed to open stream: No such file or directory in /in/9PObU on line 5 failed to copy index.php...
Output for hhvm-3.10.0 - 3.12.0
failed to copy index.php...
Output for 4.3.0 - 4.3.1
Warning: copy(index.php) [http://www.php.net/function.copy]: failed to create stream: No such file or directory in /in/9PObU on line 5 failed to copy index.php...