3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (0 ? 'a' : 0 ? 'b' : 'c'), PHP_EOL; echo (0 ? "a" : 1 ? "b" : "c"), PHP_EOL; echo (1 ? "a" : 0 ? "b" : "c"), PHP_EOL; echo (1 ? "a" : 1 ? "b" : "c"), PHP_EOL;
based on nH9s6
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
c b b b
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
c Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/0qFqm on line 3 PHP_EOLb Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/0qFqm on line 4 PHP_EOLb Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/0qFqm on line 5 PHP_EOLb Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/0qFqm on line 6 PHP_EOL