3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $moved = 'foo' echo 1; $isNotSet = !isset($moved); echo 2; $moveSuccess = true; echo 3; if(($isNotSet === true) || ($moveSuccess === true) || 1){ echo 4; }else{ echo 5; } echo 6;
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/71Ve8 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ECHO in /in/71Ve8 on line 4
Process exited with code 255.