3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'http://qa.office/' ; $int = intval(preg_replace("//'/", "/2", $string), 10); echo $int;
based on ncAHS
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Warning: preg_replace(): Unknown modifier ''' in /in/RCg62 on line 4 0
Output for hhvm-3.12.14 - 3.17.3
Warning: Unknown modifier ''': [//'/] in /in/RCg62 on line 4 0