3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'IS_NOT_EMPTY'; $array = explode(',',$string); if(in_array('IS_NOT_EMPTY',$array)){ echo 'test'; } echo '<pre>'.print_r($array,true).'</pre>'; ?>
based on c2rhH
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
test<pre>Array ( [0] => IS_NOT_EMPTY ) </pre>
Output for hhvm-3.10.0

Process exited with code 153.