3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo ('1' > '2' ? 'true' : 'false') . " ('1' > '2')\n"; echo ('1' < '2' ? 'true' : 'false') . " ('1' < '2')\n"; echo ('02' > '1' ? 'true' : 'false') . " ('02' > '1')\n"; echo ('1E1' <= '10' ? 'true' : 'false') . " ('1E1' <= '10')\n"; echo ('+1' < '1' ? 'true' : 'false') . " ('+1' < '1')\n"; echo ('+0' < '-0' ? 'true' : 'false') . " ('+0' < '-0')\n"; echo ('0.99999999999999995' < '1' ? 'true' : 'false') . " ('0.99999999999999995' < '1')\n"; echo ('0.99999999999999995' > '1' ? 'true' : 'false') . " ('0.99999999999999995' > '1')\n";
based on AHvaA
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
false ('1' > '2') true ('1' < '2') true ('02' > '1') true ('1E1' <= '10') false ('+1' < '1') false ('+0' < '-0') false ('0.99999999999999995' < '1') false ('0.99999999999999995' > '1')