3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); $template = '<p>{{{ 发货单号 }}}</p><p>{{{ 单据123号 }}}</p><p>{{{ 拉包 }}}</p><p>{{{ a }}}</p><p>{{{ a }}}</p>'; $ret = preg_match_all('/\{\{\{ \S+ \}\}\}/', $template, $matches); print_r($matches);
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30, 7.0.0 - 7.0.27, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.29, 8.0.0 - 8.0.19, 8.1.0 - 8.1.6
Array ( [0] => Array ( [0] => {{{ 发货单号 }}} [1] => {{{ 单据123号 }}} [2] => {{{ 拉包 }}} [3] => {{{ a }}} [4] => {{{ a }}} ) )

preferences:
79.27 ms | 413 KiB | 5 Q