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\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 kDLbf
Output for 7.0.0 - 7.2.0
Warning: preg_replace() expects parameter 4 to be integer, string given in /in/bmVoK on line 11
Output for 5.3.21 - 5.6.28
Warning: preg_replace() expects parameter 4 to be long, string given in /in/bmVoK on line 11