3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "1+hello/world"; $e = explode("/", $s); $f = strpos($s, "af+"); $pattern = '/[;/]/'; $r = preg_split($pattern, $s); var_dump($r);
Output for 5.2.3 - 7.1.0
Warning: preg_split(): Unknown modifier ']' in /in/Tnacv on line 8 bool(false)
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Unknown modifier ']' in <b>/in/Tnacv</b> on line <b>8</b><br /> bool(false)
Output for 4.3.11 - 4.4.2
<br /> <b>Warning</b>: preg_split(): Unknown modifier ']' in <b>/in/Tnacv</b> on line <b>8</b><br /> bool(false)
Output for 4.3.0 - 4.3.10
<br /> <b>Warning</b>: Unknown modifier ']' in <b>/in/Tnacv</b> on line <b>8</b><br /> bool(false)