3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings=[ 'e123f654g933c', 'e123f654g933ce99f77g66c' ]; foreach($strings as $string){ var_export( array_map( function($v){ return preg_match_all('/[e-g]\d+/',$v,$out2)?$out2[0]:[]; }, preg_match_all('/(?:[e-g]\d+)+(?=c)/',$string,$out1)?$out1[0]:[] ) ); echo"\n\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 'e123', 1 => 'f654', 2 => 'g933', ), ) array ( 0 => array ( 0 => 'e123', 1 => 'f654', 2 => 'g933', ), 1 => array ( 0 => 'e99', 1 => 'f77', 2 => 'g66', ), )

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:
26.68 ms | 406 KiB | 5 Q