3v4l.org

run code in 300+ PHP versions simultaneously
<?php $false = false; if($false > 0){ echo ">0 does not filter false<br />"; } if($false >= 0){ echo ">=0 does not filter false<br />"; } if($false < 0){ echo "<0 does not filter false<br />"; } if($false <= 0){ echo "<=0 does not filter false<br />"; } if($false > 1){ echo ">1 does not filter false<br />"; } if($false >= 1){ echo ">=1 does not filter false<br />"; } if($false < 1){ echo "<1 does not filter false<br />"; } if($false <= 1){ echo "<=1 does not filter false<br />"; } if($false > -1){ echo ">-1 does not filter false<br />"; } if($false >= -1){ echo ">=-1 does not filter false<br />"; } if($false < -1){ echo "<-1 does not filter false<br />"; } if($false <= -1){ echo "<=-1 does not filter false<br />"; }
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.26, 8.1.0 - 8.1.13, 8.2rc1 - rc3
>=0 does not filter false<br /><=0 does not filter false<br /><1 does not filter false<br /><=1 does not filter false<br /><-1 does not filter false<br /><=-1 does not filter false<br />

preferences:
21.21 ms | 410 KiB | 5 Q