Bugs & Features

3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php $filterString = "R"; $returnVal = ""; $filterLetters = str_split($filterString, 1); for($x = 0; $x < strlen($filterString); $x++) { $returnVal .= "(type <=> '" . "R-filter" . "') OR "; echo $returnVal; }
Output for 5.0.0 - 5.6.6, php7@20140507 - 20150201, hhvm-3.3.1 - 3.5.1
(type <=> 'R-filter') OR
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/6YPF7 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/6YPF7 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/6YPF7 on line 5