3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(2,5,4); $brr = 3; if ($arr === array $arr) { echo "yes"; } else { echo "no"; } if ($brr === array $arr) { echo "yes"; } else { echo "no"; }
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '$arr' (T_VARIABLE), expecting '(' in /in/7UjJ4 on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in /in/7UjJ4 on line 7
Process exited with code 255.