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 lt8Du
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Warning: preg_replace(): No ending delimiter '/' found in /in/ncAHS on line 4 0
Output for hhvm-3.12.14 - 3.17.3
Warning: No ending delimiter '/' found: [/'] in /in/ncAHS on line 4 0