3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data[1]= 'sdfsdf queue:name sdfsdaffasd'; preg_match('/queue:(.+\S)\s/', $data[1] ?? '', $matches, PREG_OFFSET_CAPTURE); $transportName = $matches[1] ?? ''; print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gkLT4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $data, !1 = $matches, !2 = $transportName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 1
          1        OP_DATA                                                  'sdfsdf+queue%3Aname++sdfsdaffasd'
    3     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2Fqueue%3A%28.%2B%5CS%29%5Cs%2F'
          4        FETCH_DIM_IS                                     ~4      !0, 1
          5        COALESCE                                         ~5      ~4
          6        QM_ASSIGN                                        ~5      ''
          7        SEND_VAL                                                 ~5
          8        SEND_REF                                                 !1
          9        SEND_VAL                                                 256
         10        DO_ICALL                                                 
    4    11        FETCH_DIM_IS                                     ~7      !1, 1
         12        COALESCE                                         ~8      ~7
         13        QM_ASSIGN                                        ~8      ''
         14        ASSIGN                                                   !2, ~8
    5    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 952 KiB | 15 Q