3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input_str = trim(fgets(STDIN)); $input_str = str_replace(array("\r\n", "\n", "\r"), "", $input_str); $words = explode(" ", $input_str); echo $words[0] === $words[1];
Output for 5.3.0 - 7.1.0
Notice: Undefined offset: 1 in /in/nnYNC on line 7
Output for 5.2.3 - 5.2.17
Notice: Undefined offset: 1 in /in/nnYNC on line 7
Output for 4.3.0 - 5.2.2
Notice: Use of undefined constant STDIN - assumed 'STDIN' in /in/nnYNC on line 2 Warning: fgets(): supplied argument is not a valid stream resource in /in/nnYNC on line 2 Notice: Undefined offset: 1 in /in/nnYNC on line 7