3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_replace('#.*_([a-z])+\.(?jpg|gif|png|jpeg)$#','_n','http://photos-h.ak.fbcdn.net/hphotos-ak-frc3/t1.0-0/1538683_705144079517314_1930601228_n.jpg', 1));
Output for 4.4.9, 5.2.6 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Compilation failed: unrecognized character after (? or (?- at offset 15 in /in/gb03Z on line 3 NULL
Output for hhvm-3.12.0
Warning: Compilation failed: unrecognized character after (? or (?- at offset 15 in /in/gb03Z on line 3 NULL
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.11 - 4.4.8, 5.0.0 - 5.2.5
Warning: preg_replace(): Compilation failed: unrecognized character after (? at offset 15 in /in/gb03Z on line 3 NULL
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: unrecognized character after (? at offset 15 in /in/gb03Z on line 3 NULL