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"; } $k = implode("123",","); print_r($k);
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
0123 Warning: implode(): Invalid arguments passed in /in/OP2BM on line 11
Output for hhvm-3.10.0 - 3.13.2
0123 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/OP2BM on line 11
Output for 4.3.2 - 5.2.4
0123 Warning: implode(): Bad arguments. in /in/OP2BM on line 11
Output for 4.3.0 - 4.3.1
0123 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/OP2BM on line 11