3v4l.org

run code in 200+ 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.12, 5.4.14
Parse error: syntax error, unexpected 'else' (T_ELSE) in SA1uT on line 8
Process exited with code 255.
Output for 5.4.13
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.22, 5.3.24
Parse error: syntax error, unexpected T_ELSE in SA1uT on line 8
Process exited with code 255.
Output for 5.3.23
Parse error: syntax error, unexpected T_ELSE in /in/F116A on line 8
Process exited with code 255.