3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_str = trim(fgets(STDIN)); $input_str = str_replace(array("\r\n", "\n", "\r"), "", $input_str); $words = explode(" ", $input_str); $words[0] = 'apple'; $words[1] = 'apple'; echo $words[0] === $words[1];

preferences:
48.44 ms | 402 KiB | 5 Q