3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo is_array($a) ? 'true' : 'false'; echo PHP_EOL; echo is_object($a) ? 'true' : 'false'; echo PHP_EOL; $a = null; echo is_array($a) ? 'true' : 'false'; echo PHP_EOL; echo is_object($a) ? 'true' : 'false';
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: a in /in/4qebX on line 3 false Notice: Undefined variable: a in /in/4qebX on line 5 false false false
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.0.3
Notice: Undefined variable: a in /in/4qebX on line 3 false Notice: Undefined variable: a in /in/4qebX on line 5 false false false
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Undefined variable: a in /in/4qebX on line 3 false Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4qebX on line 4 PHP_EOL Notice: Undefined variable: a in /in/4qebX on line 5 false Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4qebX on line 6 PHP_EOLfalse Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4qebX on line 9 PHP_EOLfalse