3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "01/11/2016 Aggregated Micro Power Holdings plc (AMPH) JPMorgan Global Growth & Income plc (JPGI) Murray Income Trust plc (MUT)"; preg_match('/(\d+\/\d+\/\d+)\s/', $string, $match); $date = trim($match[0]); $string = substr($string,strlen($match[0])); preg_match_all('/\G(?P<name>.*)?\((?P<abbr>.*)?\)/', $string, $firms); //$firms = preg_split('/\)\s/',$string); var_dump($firms);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g8D5R
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string, !1 = $match, !2 = $date, !3 = $firms
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '01%2F11%2F2016+Aggregated+Micro+Power+Holdings+plc+%28AMPH%29+JPMorgan+Global+Growth+%26+Income+plc+%28JPGI%29+Murray+Income+Trust+plc+%28MUT%29'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%5Cd%2B%5C%2F%5Cd%2B%5C%2F%5Cd%2B%29%5Cs%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'trim'
          7        FETCH_DIM_R                                      ~6      !1, 0
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
    6    11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !0
         13        FETCH_DIM_R                                      ~9      !1, 0
         14        STRLEN                                           ~10     ~9
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !0, $11
    7    18        INIT_FCALL                                               'preg_match_all'
         19        SEND_VAL                                                 '%2F%5CG%28%3FP%3Cname%3E.%2A%29%3F%5C%28%28%3FP%3Cabbr%3E.%2A%29%3F%5C%29%2F'
         20        SEND_VAR                                                 !0
         21        SEND_REF                                                 !3
         22        DO_ICALL                                                 
    9    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.44 ms | 1395 KiB | 23 Q