3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo eval(md5('QNKCDZO'))."\n"; echo eval(md5('240610708'))."\n"; var_dump(md5('240610708') == md5('QNKCDZO')); var_dump(md5('aabg7XSs') == md5('aabC9RqS')); var_dump(sha1('aaroZmOk') == sha1('aaK1STfY')); var_dump(sha1('aaO8zKZF') == sha1('aa3OFF9m')); var_dump('0010e2' == '1e3'); var_dump('0x1234Ab' == '1193131'); var_dump('0xABCdef' == ' 0xABCdef');
based on 1iOLN
Output for 7.0.0 - 7.3.0alpha1
Parse error: syntax error, unexpected end of file in /in/9Wbhk(2) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Parse error: syntax error, unexpected end of file in /in/9Wbhk(2) : eval()'d code on line 1 Parse error: syntax error, unexpected end of file in /in/9Wbhk(3) : eval()'d code on line 1 bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected end of file in /in/9Wbhk(2) : eval()'d code on line 1 Parse error: syntax error, unexpected end of file in /in/9Wbhk(3) : eval()'d code on line 1 bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)
Process exited with code 255.
Output for 5.2.1 - 5.3.29
Parse error: syntax error, unexpected $end in /in/9Wbhk(2) : eval()'d code on line 1 Parse error: syntax error, unexpected $end in /in/9Wbhk(3) : eval()'d code on line 1 bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.0
Parse error: syntax error, unexpected $end in /in/9Wbhk(2) : eval()'d code on line 1 Parse error: syntax error, unexpected $end in /in/9Wbhk(3) : eval()'d code on line 1 bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(false)
Process exited with code 255.
Output for 4.3.10 - 4.4.1, 5.0.3 - 5.0.5
Parse error: parse error, unexpected $ in /in/9Wbhk(2) : eval()'d code on line 1 Parse error: parse error, unexpected $ in /in/9Wbhk(3) : eval()'d code on line 1 bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(false)
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.9, 5.0.0 - 5.0.2
Parse error: parse error, unexpected $ in /in/9Wbhk(2) : eval()'d code on line 1 Parse error: parse error, unexpected $ in /in/9Wbhk(3) : eval()'d code on line 1 bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/9Wbhk(2) : eval()'d code on line 1 Parse error: parse error in /in/9Wbhk(3) : eval()'d code on line 1 bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)
Process exited with code 255.