3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=1;$i<31;$i++) { if($i % 3 == 0 && $i % 5 != 0) echo "foo"; if($i % 5 == && $i % 3 != 0) echo "bar" if($i % 5 == 0 && $i % 3 == 0) echo "foobar"; }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND) in /in/BhTdE on line 6
Process exited with code 255.
Output for 5.3.6 - 5.3.28
Parse error: syntax error, unexpected T_BOOLEAN_AND in /in/BhTdE on line 6
Process exited with code 255.

preferences:
156.47 ms | 1395 KiB | 55 Q