3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // m = re.search('Episode (\d+)', 'series[Episode 37]-03th_July_2010-YouTube', re.IGNORECASE) $string = "Hello! 123 test this? 456. done? 100%"; $int = intval(preg_replace('Episode (\d+)', '', $string), 10); echo $int;
based on R4pee
Output for 5.6.30, 7.0.30 - 7.3.0rc3
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/rEeHU on line 4 0
Output for hhvm-3.22.0
Warning: Delimiter must not be alphanumeric or backslash in /in/rEeHU on line -1 0
Output for hhvm-3.18.5 - 3.21.3
Warning: Delimiter must not be alphanumeric or backslash in /in/rEeHU on line 4 0