3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php #$srch = "{${eval("echo phpinfo();//apple1(?=/)\e")}}"; $srch = "{${eval("phpinfo(); echo 'apple (?=/)';\e")}}"; echo $srch; echo "\n"; $search = htmlentities($srch); echo $search; echo "\n"; if (strpos($search, 'apple') !== false){ echo "in the if!"; echo "\n"; echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "apple"); }
Output for 5.4.0 - 7.2.0
Warning: Unexpected character in input: '' (ASCII=27) state=0 in /in/t5ZSK(3) : eval()'d code on line 1 Warning: phpinfo() has been disabled for security reasons in /in/t5ZSK(3) : eval()'d code on line 1 apple (?=/) Notice: Undefined variable: in /in/t5ZSK on line 3
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/t5ZSK(3) : eval()'d code on line 1 Notice: Undefined variable: in /in/t5ZSK on line 3
Process exited with code 255.