3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match( '/^\(\d+)\/', '050Subject', $matches); echo $matches[1]; // 1234
based on 03s7m
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: preg_match(): No ending delimiter '/' found in /in/NF85E on line 2
Output for hhvm-3.15.4
Warning: No ending delimiter '/' found: [/^\(\d+)\/] in /in/NF85E on line 2