3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sampleString = "082307"; echo chunk_split($str1, 2, ':'); ?>
based on blvKi
Output for 5.0.5 - 7.1.0
Notice: Undefined variable: str1 in /in/vbLhT on line 5 :
Output for 5.0.4
Notice: Undefined variable: str1 in /in/vbLhT on line 5
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.3
Notice: Undefined variable: str1 in /in/vbLhT on line 5
Output for 4.4.0 - 4.4.9
Notice: Undefined variable: str1 in /in/vbLhT on line 5 :