3v4l.org

run code in 200+ 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 - 7.2.0
0123 Warning: implode(): Argument must be an array 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