3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$view = insertAtPosition('/views/index/signin.phtml'); function insertAtPosition($string, $insert, $position) { return implode($insert, str_split($string, $position)); } echo str_split('/' , '/views/index/signin.phtml');
based on Gbejj
Output for 7.0.0 - 7.2.0
Warning: str_split() expects parameter 2 to be integer, string given in /in/bmubV on line 9
Output for 5.3.21 - 5.6.28
Warning: str_split() expects parameter 2 to be long, string given in /in/bmubV on line 9