3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $html = '<li> Size: <a href="/data/9c1c06557b088a84f6d4379f0d9d535a.jpg">155 KB</a> (750x1050) </li>'; preg_match_all("/\sSize:\s<a\shref=\"(?P<image>[^\"]+)\"/", $html, $pmimage); var_dump($pmimage);
Output for 4.3.3 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> array(1) { [0]=> string(59) " Size: <a href="/data/9c1c06557b088a84f6d4379f0d9d535a.jpg"" } ["image"]=> array(1) { [0]=> string(42) "/data/9c1c06557b088a84f6d4379f0d9d535a.jpg" } [1]=> array(1) { [0]=> string(42) "/data/9c1c06557b088a84f6d4379f0d9d535a.jpg" } }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.2
array(2) { [0]=> array(1) { [0]=> string(59) " Size: <a href="/data/9c1c06557b088a84f6d4379f0d9d535a.jpg"" } [1]=> array(1) { [0]=> string(42) "/data/9c1c06557b088a84f6d4379f0d9d535a.jpg" } }