3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; if($false > 0){ echo ">0 does not filter false" } if($false >= 0){ echo ">=0 does not filter false" } if($false < 0){ echo "<0 does not filter false" } if($false <= 0){ echo "<=0 does not filter false" } if($false > 1){ echo ">1 does not filter false" } if($false >= 1){ echo ">=1 does not filter false" } if($false < 1){ echo "<1 does not filter false" } if($false <= 1){ echo "<=1 does not filter false" } if($false > -1){ echo ">-1 does not filter false" } if($false >= -1){ echo ">=-1 does not filter false" } if($false < -1){ echo "<-1 does not filter false" } if($false <= -1){ echo "<=-1 does not filter false" }
Output for 8.0.1 - 8.0.26, 8.1.0 - 8.1.13, 8.2rc1 - rc3
Parse error: syntax error, unexpected token "}", expecting "," or ";" in /in/SFtEL on line 7
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Parse error: syntax error, unexpected '}', expecting ';' or ',' in /in/SFtEL on line 7
Process exited with code 255.

preferences:
22.75 ms | 410 KiB | 5 Q