3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (object) array(); var_dump($a); if (empty($a)) { echo 'empty'; } else { echo 'not empty'; }
based on goDTk
Output for 5.0.0 - 7.3.0rc4
object(stdClass)#1 (0) { } not empty
Output for 4.3.0 - 4.4.9
object(stdClass)(0) { } empty