3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { var $one = "111"; function __construct() { echo "construct";} function __destruct() { echo "destruct";} function __wakeup() { echo "wakeup";} } $at = new A(); $x = serialize($at); ?>
based on RTR5v
Output for 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
constructdestruct
Output for 5.0.0 - 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/rcu5q on line 2 constructdestruct
Output for 4.3.0 - 4.4.9