3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 0x0A; echo "\n"; echo "0x0A"; echo "\n"; if (0x0A == '0x0A') { echo "0x0A == '0x0A'".PHP_EOL; } if (0x0A == "0x0A") { echo '0x0A == "0x0A"'.PHP_EOL; }
Output for 7.0.0 - 7.2.0
10 0x0A
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28
10 0x0A 0x0A == '0x0A' 0x0A == "0x0A"
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
10 0x0A Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/b9ATf on line 7 0x0A == '0x0A'PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/b9ATf on line 10 0x0A == "0x0A"PHP_EOL