3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '1111-1112-3333-4444'; var_dump(substr(preg_replace('^[0-9]+/i', '', $string), 0, 6));
Output for 7.0.0 - 7.3.0rc3
Warning: preg_replace(): No ending delimiter '^' found in /in/dLAb2 on line 5 string(0) ""
Output for 5.5.0 - 5.6.23
Warning: preg_replace(): No ending delimiter '^' found in /in/dLAb2 on line 5 bool(false)