3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = "echo 'hacked!'"; echo "\043\056\052\043\145" . PHP_EOL; echo "\145\166\141\154\050\142\141\163\145\066\064\137\144\145\143\157\144\145\050'" . PHP_EOL; echo "'\051\051\073" . PHP_EOL; echo preg_replace( "\043\056\052\043\145", "\145\166\141\154\050\142\141\163\145\066\064\137\144\145\143\157\144\145\050'" . base64_encode($code) . "'\051\051\073", ""); }
based on vvQfq
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '}', expecting end of file in /in/YUtqX on line 12
Process exited with code 255.
Output for 5.3.21 - 5.6.16
Parse error: syntax error, unexpected '}' in /in/YUtqX on line 12
Process exited with code 255.