3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(preg_match_all('/#\S+| \K[^#]+\b/','#now my time #Cairo travel #here',$out)?$out[0]:'fail');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CMW77
function name:  (null)
number of ops:  14
compiled vars:  !0 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_export'
          1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%23%5CS%2B%7C+%5CK%5B%5E%23%5D%2B%5Cb%2F'
          3        SEND_VAL                                                 '%23now+my+time+%23Cairo+travel+%23here'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $1      
          6      > JMPZ                                                     $1, ->10
          7    >   FETCH_DIM_R                                      ~2      !0, 0
          8        QM_ASSIGN                                        ~3      ~2
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~3      'fail'
         11    >   SEND_VAL                                                 ~3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.13 ms | 1399 KiB | 17 Q