3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $p = 0; $p->x = 42; var_dump($p);
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Attempt to assign property of non-object in /in/P5TYa on line 3 int(0)
Output for hhvm-3.10.0 - 3.12.0
Warning: Cannot access property on non-object in /in/P5TYa on line 3 int(0)
Output for 4.3.0 - 4.4.9
int(0)