3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // ~x = -x - 1 $a = "(echo 'Hello';)"; $s = str_split($a); $v = null; foreach($s as $c) { $o = ord($c); $v .= chr(($o * -1) - 1); } $code = urlencode((~(~$v))); #echo (~urldecode($code)); #eval("echo 'Hello';"); echo urldecode($code); echo eval(urldecode($code));
based on 9AjWc
Output for 7.0.0 - 7.3.0beta1
ך����ط������� Parse error: syntax error, unexpected end of file in /in/HkqsI(16) : eval()'d code on line 1
Process exited with code 255.
Output for 5.6.0 - 5.6.30
ך����ط������� Parse error: syntax error, unexpected end of file in /in/HkqsI(16) : eval()'d code on line 1