3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! class MyClass { var $value; } $a = new MyClass; $a->newValue = 1; $b = $a; $b->newValue = 2; echo $a->newValue;
Output for 5.1.3 - 7.1.0
2
Output for 5.0.0 - 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/PMMjh on line 6 2
Output for 4.3.0 - 4.4.9
1