3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 5; $x = ($a == 5)?'Ist5': ($a == 4)?'Ist 4':'Ist was anderes'; echo $x;
based on ff844
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant  5 - assumed ' 5' in /in/lfHR1 on line 2 Fatal error: Uncaught Error: Call to undefined function  () in /in/lfHR1:3 Stack trace: #0 {main} thrown in /in/lfHR1 on line 3
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Notice: Use of undefined constant  5 - assumed ' 5' in /in/lfHR1 on line 2 Fatal error: Call to undefined function  () in /in/lfHR1 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant  5 - assumed ' 5' in /in/lfHR1 on line 2 Fatal error: Call to undefined function:  () in /in/lfHR1 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant  5 - assumed ' 5' in /in/lfHR1 on line 2 Fatal error: Call to undefined function:  () in /in/lfHR1 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant  5 - assumed ' 5' in /in/lfHR1 on line 2 Fatal error: Call to undefined function:  () in /in/lfHR1 on line 3