3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 0x0A; echo "\n"; echo "0x0A"; if (0x0A == '0x0A') { echo "0x0A == '0x0A'".PHP_EOL; } if (0x0A == "0x0A") { echo '0x0A == "0x0A"'.PHP_EOL; }
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
10 0x0A
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28
10 0x0A0x0A == '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/nTl5Q on line 6 0x0A == '0x0A'PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nTl5Q on line 9 0x0A == "0x0A"PHP_EOL