3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = preg_replace('/b.*b/', '', 'baab' . str_repeat('a', 100024)); var_dump(strlen($b));
Output for 4.3.0 - 5.1.6, 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(100024)
Output for 5.2.0 - 5.3.6
int(0)