3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "pippo:12312213213223"; $data = implode(' ', array_slice($a, 2)); ?>
Output for 5.2.6 - 7.2.0
Warning: array_slice() expects parameter 1 to be array, string given in /in/nh4EK on line 6 Warning: implode(): Invalid arguments passed in /in/nh4EK on line 6
Output for 5.2.5
Warning: array_slice(): The first argument should be an array in /in/nh4EK on line 6 Warning: implode(): Invalid arguments passed in /in/nh4EK on line 6
Output for 4.3.2 - 5.2.4
Warning: array_slice(): The first argument should be an array in /in/nh4EK on line 6 Warning: implode(): Bad arguments. in /in/nh4EK on line 6
Output for 4.3.0 - 4.3.1
Warning: array_slice() [http://www.php.net/function.array-slice]: The first argument should be an array in /in/nh4EK on line 6 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/nh4EK on line 6