3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function encrypt($input) { return eval("return (('0x'.unpack('H*', '$input')) * 37 + 13);"); } print encrypt('aaa');
based on ZfjBN
Output for 7.1.0 - 7.2.0
Notice: Array to string conversion in /in/QeKD4(5) : eval()'d code on line 1 Notice: A non well formed numeric value encountered in /in/QeKD4(5) : eval()'d code on line 1 13
Output for 7.0.0 - 7.0.20
Notice: Array to string conversion in /in/QeKD4(5) : eval()'d code on line 1 13
Output for 5.4.10 - 5.6.28
Notice: Array to string conversion in /in/QeKD4(5) : eval()'d code on line 1 383
Output for 5.3.20 - 5.3.29
383