3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo strpos("PR001:Approved,SA001:Approved","PR001"); if(strpos("PR001:Approved,SA001:Approved","PR001") !== false) { echo "123"; } $s = "12345"; $k = implode($s); print_r($k);
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
0123 Warning: implode(): Argument must be an array in /in/lWCKn on line 11
Output for hhvm-3.10.0 - 3.12.0
0123 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/lWCKn on line 11
Output for 4.3.2 - 5.2.4
0123 Warning: implode(): Argument to implode must be an array. in /in/lWCKn on line 11
Output for 4.3.0 - 4.3.1
0123 Warning: implode() [http://www.php.net/function.implode]: Argument to implode must be an array. in /in/lWCKn on line 11