3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $o = new stdClass; $o->type = 'cursus'; $a = array('#node' => $o); if ($a['#node'] == 'cursus') { echo 'Cursus'; } else { echo 'Not cursus'; }
based on 5KYtT
Output for 4.3.0 - 5.0.5, 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Not cursus
Output for 5.1.0 - 5.1.6
Notice: Object of class stdClass could not be converted to int in /in/PDiDj on line 5 Not cursus