3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <pre><?php $str = 'NAME OF ITEM 123456789012 OTHER NAME 987654321098 NAME 567890123456'; preg_match_all( '/^(.*?)\s+(\d+)$/m', $str, $matches); var_dump( $matches); $items = array(); foreach( $matches[2] as $k => $upc) { $items[$upc] = $matches[1][$k]; } var_dump( $items);
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected '<' in /in/5pYIt on line 2
Process exited with code 255.