3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match_all("/\//", '/var/lib/gitolite/repositories/libs/bundles/core-bundle.git', $matches, PREG_OFFSET_CAPTURE); var_dump($matches);
Output for 4.3.3 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(1) { [0]=> array(7) { [0]=> array(2) { [0]=> string(1) "/" [1]=> int(0) } [1]=> array(2) { [0]=> string(1) "/" [1]=> int(4) } [2]=> array(2) { [0]=> string(1) "/" [1]=> int(8) } [3]=> array(2) { [0]=> string(1) "/" [1]=> int(17) } [4]=> array(2) { [0]=> string(1) "/" [1]=> int(30) } [5]=> array(2) { [0]=> string(1) "/" [1]=> int(35) } [6]=> array(2) { [0]=> string(1) "/" [1]=> int(43) } } }
Output for 4.3.0 - 4.3.2
Warning: Wrong value for parameter 4 in call to preg_match_all() in /in/ASHGv on line 3 NULL