3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo copy(x,y);
based on MCRMa
Output for 7.3.0alpha1 - 7.3.0beta1
Warning: Use of undefined constant x - assumed 'x' (this will throw an Error in a future version of PHP) in /in/dTRaS on line 2 Warning: Use of undefined constant y - assumed 'y' (this will throw an Error in a future version of PHP) in /in/dTRaS on line 2 Warning: copy(x): failed to open stream: No such file or directory in /in/dTRaS on line 2
Output for 7.2.0 - 7.2.7
Warning: Use of undefined constant x - assumed 'x' (this will throw an Error in a future version of PHP) in /in/dTRaS on line 2 Warning: Use of undefined constant y - assumed 'y' (this will throw an Error in a future version of PHP) in /in/dTRaS on line 2 Warning: copy(): open_basedir restriction in effect. File(x) is not within the allowed path(s): (/tmp:/in) in /in/dTRaS on line 2
Output for 5.6.30, 7.0.30 - 7.1.20
Notice: Use of undefined constant x - assumed 'x' in /in/dTRaS on line 2 Notice: Use of undefined constant y - assumed 'y' in /in/dTRaS on line 2 Warning: copy(): open_basedir restriction in effect. File(x) is not within the allowed path(s): (/tmp:/in) in /in/dTRaS on line 2
Output for hhvm-3.22.0
Notice: Use of undefined constant x - assumed 'x' in /in/dTRaS on line -1 Notice: Use of undefined constant y - assumed 'y' in /in/dTRaS on line -1
Output for hhvm-3.18.5 - 3.21.3
Notice: Use of undefined constant x - assumed 'x' in /in/dTRaS on line 2 Notice: Use of undefined constant y - assumed 'y' in /in/dTRaS on line 2