3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x[0] = "sys"."tem"; $x[0]("echo 1337 > $(pwd)../../../../var/tmp/loldongas"); if(file_exists(getcwd().'../../../../var/tmp/loldongas')){print 'gay';}
Output for 7.3.0rc3 - 7.3.0rc4
Warning: file_exists(): open_basedir restriction in effect. File(/../../../../var/tmp/loldongas) is not within the allowed path(s): (/tmp:/in:/etc) in /in/LnnjI on line 2
Output for 5.6.28, 7.0.14 - 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
Output for 7.1.20, 7.2.6
Warning: file_exists(): open_basedir restriction in effect. File(/../../../../var/tmp/loldongas) is not within the allowed path(s): (/tmp:/in) in /in/LnnjI on line 2
Output for 4.3.2 - 5.6.25, 7.0.0 - 7.0.10
Warning: system(): Unable to fork [echo 1337 > $(pwd)../../../../var/tmp/loldongas] in /in/LnnjI on line 1
Output for 4.3.0 - 4.3.1
Warning: system() [http://www.php.net/function.system]: Unable to fork [echo 1337 > $(pwd)../../../../var/tmp/loldongas] in /in/LnnjI on line 1