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, 5.5.0 - 5.5.7
Parse error: syntax error, unexpected end of file in /in/kvE6Y on line 23
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/kvE6Y on line 23
Process exited with code 255.

preferences:
175.8 ms | 1395 KiB | 68 Q