3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tmp1=tempnam("/tmp", "prvieval"); $tmp2=tempnam("/tmp", "drugieval"); $tmp3=tempnam("/tmp","trecieval"); $cntnt="ZWNobyAnYSc7"; $bb64="base64_decode"; file_put_contents($tmp1, '<?php file_put_contents("' . $tmp2 . '", \'<?php file_put_contents("' . $tmp3 . '","<?php \' . $bb64 . '(\"'.$cntnt.'\") . \';");\' ); ' ); echo file_get_contents($tmp1); echo "-----"; include($tmp1); #include($tmp2); #include($tmp3);
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) in /in/oqW5B on line 12
Process exited with code 255.
Output for 5.3.21 - 5.6.17
Parse error: syntax error, unexpected '(' in /in/oqW5B on line 12
Process exited with code 255.