3v4l.org

run code in 300+ PHP versions simultaneously
<?php $smash = ['65S34523APPLE IS VERY BEAUTIFUL6.000TX786.34563.675 234.89', '06W01232BOOK IS SUCCESSFUL1.000YJ160.00021.853 496.00', '67E45643DO YOU HAVE A PEN? 7/56.450EQ9000.3451.432 765.12']; foreach ($smash as $line) { $result[] = preg_match('~(\w+\d)(\D+)[^A-Z]+([A-Z]{2})(\d+\.\d{3})~', $line, $out) ? array_slice($out, 1) : []; } var_export($result);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => '65S34523', 1 => 'APPLE IS VERY BEAUTIFUL', 2 => 'TX', 3 => '786.345', ), 1 => array ( 0 => '06W01232', 1 => 'BOOK IS SUCCESSFUL', 2 => 'YJ', 3 => '160.000', ), 2 => array ( 0 => '67E45643', 1 => 'DO YOU HAVE A PEN? ', 2 => 'EQ', 3 => '9000.345', ), )

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:
61.53 ms | 402 KiB | 8 Q