3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str1= '082307'; echo substr(chunk_split($str1, 2, ':')); ?> - See more at: http://www.w3resource.com/php-exercises/php-string-exercises.php#sthash.bzfnf2JW.dpuf
based on B5Rc7
Output for 5.3.0 - 7.1.0
Warning: substr() expects at least 2 parameters, 1 given in /in/5l9VT on line 3 - See more at: http://www.w3resource.com/php-exercises/php-string-exercises.php#sthash.bzfnf2JW.dpuf
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for substr() in /in/5l9VT on line 3 - See more at: http://www.w3resource.com/php-exercises/php-string-exercises.php#sthash.bzfnf2JW.dpuf