3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { } $x = array( new A(), new A(), ); $y = array(); foreach ($x as $val) { if (isset($y[$val])) { continue; } }
Output for 5.1.0 - 7.2.0
Warning: Illegal offset type in isset or empty in /in/5krsP on line 15 Warning: Illegal offset type in isset or empty in /in/5krsP on line 15
Output for 5.0.0 - 5.0.5
Warning: Illegal offset type in unset in /in/5krsP on line 15 Warning: Illegal offset type in unset in /in/5krsP on line 15
Output for 4.3.0 - 4.4.9
Warning: Illegal offset type in /in/5krsP on line 15 Warning: Illegal offset type in /in/5krsP on line 15