3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filterString = "R"; $filterLetters = str_split($filterString, 1); for($x = 0; $x < strlen($filterString); $x++) { $returnVal .= "(type <=> '" . "R-filter" . "') OR "; echo $returnVal; }
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: returnVal in /in/KM2oi on line 6 (type <=> 'R-filter') OR
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: returnVal in /in/KM2oi on line 6 (type <=> 'R-filter') OR
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/KM2oi on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/KM2oi on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/KM2oi on line 4