3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Fuck { var $lol = 1; } $a = new Fuck(); var_dump($a->lol); $b = $a; $a->lol = 2; var_dump($b->lol); ?>
Output for 5.1.3 - 7.1.0
int(1) int(2)
Output for 5.0.0 - 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/vIGls on line 4 int(1) int(2)
Output for 4.3.0 - 4.4.9
int(1) int(1)