3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Dummy { public $testMe = 'testMe'; public $squeek = 'squeek'; } $dummy = new $dummy; unset($dummy->squeek); var_dump($dummy);
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: dummy in /in/ikf0r on line 8 Fatal error: Uncaught Error: Class name must be a valid object or a string in /in/ikf0r:8 Stack trace: #0 {main} thrown in /in/ikf0r on line 8
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Notice: Undefined variable: dummy in /in/ikf0r on line 8 Fatal error: Class name must be a valid object or a string in /in/ikf0r on line 8
Process exited with code 255.