3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "The quisck browsn"; $str2 = "The quick brown fox"; $tempArr; $var2; $ctr=0; echo "Array1:<br> $str1 <br><br>Array2:<br> $str2"; $strarr = (explode(" ",$str1)); echo("<br>"); $strarr2 = (explode(" ",$str2)); echo("<br>"); $result = array_diff($strarr,$strarr2); //print_r($result); if (count($result) > 0){ echo "<br>Differences: | " ; foreach ($result AS $result){ echo $result." | "; }
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected end of file in /in/ce7KQ on line 23
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/ce7KQ on line 23
Process exited with code 255.

preferences:
179.85 ms | 1395 KiB | 60 Q