3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '${first_name}, ${last_name}, ${create_date:(Y-m-d)}, ${submit_date:(Y-m-d)}'; var_export(preg_match_all('~\$\{([^:}]+)(?::([^}]+))?~', $string, $out, PREG_SET_ORDER) ? $out : 'fail');
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => '${first_name', 1 => 'first_name', ), 1 => array ( 0 => '${last_name', 1 => 'last_name', ), 2 => array ( 0 => '${create_date:(Y-m-d)', 1 => 'create_date', 2 => '(Y-m-d)', ), 3 => array ( 0 => '${submit_date:(Y-m-d)', 1 => 'submit_date', 2 => '(Y-m-d)', ), )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.55 ms | 1468 KiB | 4 Q