3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'O:12:"phpinfo();//":0:{}'; eval('$b = ' . var_export(unserialize($a), true) . ';');
based on sM8Ec
Output for 4.3.11 - 4.4.9, 5.0.4 - 7.1.0
Notice: unserialize(): Error at offset 13 of 24 bytes in /in/JsG95 on line 4
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.10, 5.0.0 - 5.0.3
Parse error: parse error, unexpected T_CLASS in /in/JsG95(4) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/JsG95(4) : eval()'d code on line 1
Process exited with code 255.