3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = unserialize( stripslashes( 'O:5:"users":2:{s:6:"status";s:9:"phpinfo()";s:8:"username";s:4:"aaaa";}' ) ); echo $s->username;
based on EuFhH
Output for 5.0.2 - 5.6.28, 7.0.0 - 7.1.0
Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "users" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /in/ErHZg on line 5
Output for hhvm-3.10.0 - 3.12.0
aaaa
Output for 5.0.0 - 5.0.1
Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>unknown</b> of the object you are trying to operate on was loaded _before_ the session was started in /in/ErHZg on line 5
Output for 4.3.11 - 4.4.9
Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition users of the object you are trying to operate on was loaded _before_ the session was started in /in/ErHZg on line 5
Output for 4.3.2 - 4.3.10
Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>users</b> of the object you are trying to operate on was loaded _before_ the session was started in /in/ErHZg on line 5
Output for 4.3.0 - 4.3.1
Notice: main() [http://www.php.net/function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>users</b> of the object you are trying to operate on was loaded _before_ the session was started in /in/ErHZg on line 5