3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); function nodefault($a) { echo is_array($a)?'true':'false'; } function hasdefault($a = null) { echo is_array($a)?'true':'false'; } echo is_array($a)?'true':'false'; echo hasdefault($a); echo nodefault($a);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: a in /in/MXFPh on line 11 false Notice: Undefined variable: a in /in/MXFPh on line 12 false Notice: Undefined variable: a in /in/MXFPh on line 13 false
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/MXFPh on line 11 false Notice: Undefined variable: a in /in/MXFPh on line 12 false Notice: Undefined variable: a in /in/MXFPh on line 13 false