3v4l.org

run code in 300+ PHP versions simultaneously
<?php §magic = 1; function getFalse() { global $magic; $magic = 2; return false; } $a = false && getFalse(); var_dump($a); $b = true && getFalse(); var_dump($b);
Output for 5.3.0 - 5.3.14, 5.4.0 - 5.4.4
Parse error: syntax error, unexpected '=' in /in/eXrOP on line 2
Process exited with code 255.

preferences:
168.68 ms | 1395 KiB | 27 Q