3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $worked = false; if($a = function(){return null;}) $worked = true; assert(true == $worked); if($b = function(){return array('test'=>'test');}) $worked = false; assert(false == $worked); assert(false);
based on Gu7Lt
Output for 7.0.0 - 7.2.0
Warning: assert(): assert(false) failed in /in/VRrXP on line 10
Output for 5.3.22 - 5.6.28
Warning: assert(): Assertion failed in /in/VRrXP on line 10