3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input_lines = '新規登録 <small>{intro.free}</small> {intro.slogan}'; preg_match_all("/\{(.*?)\}/u", $input_lines, $output_array); var_dump( $output_array);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> array(2) { [0]=> string(12) "{intro.free}" [1]=> string(14) "{intro.slogan}" } [1]=> array(2) { [0]=> string(10) "intro.free" [1]=> string(12) "intro.slogan" } }