3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( 'permissions', 'this'); $toost = array('this', 'permissions'); if (array_diff($test , $toost)) { echo 'true'; else echo 'false';
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'else' (T_ELSE) in /in/F116A on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_ELSE in /in/F116A on line 8
Process exited with code 255.