3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_to_parse ="ADDING MEMBER ID 199867 TO THE 25 MATRIX... Checking For Next Paid Sponsor in Level 25 SPONSOR ID FOUND IS 199849 Sponsor ID found to be: 199849 Checking Row 1 Checking Row 2 COULD NOT FIND AN OPEN SPOT IN THE MATRIX OF SPONSOR ID: 2377893"; function FindSponserId($string_to_parse) { if (preg_match("/COULD NOT FIND AN OPEN SPOT IN THE MATRIX OF SPONSOR ID:/", $string_to_parse, $matches)) { $array_index = explode("COULD NOT FIND AN OPEN SPOT IN THE MATRIX OF SPONSOR ID:",$string_to_parse); $sponsor_id = $array_index[1]; print_r("Sponsor Id :: ".$sponsor_id); } } FindSponserId($string_to_parse); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u1K5K
function name:  (null)
number of ops:  5
compiled vars:  !0 = $string_to_parse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ADDING+MEMBER+ID+199867+TO+THE+25+MATRIX...%0A%09%09%09%09Checking+For+Next+Paid+Sponsor+in+Level+25%0A%09%09%09%09SPONSOR+ID+FOUND+IS+199849%0A%09%09%09%09Sponsor+ID+found+to+be%3A+199849%0A%09%09%09%09Checking+Row+1%0A%09%09%09%09Checking+Row+2%0A%09%09%09%09COULD+NOT+FIND+AN+OPEN+SPOT+IN+THE+MATRIX+OF+SPONSOR+ID%3A+2377893'
   16     1        INIT_FCALL                                               'findsponserid'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   17     4      > RETURN                                                   1

Function findsponserid:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/u1K5K
function name:  FindSponserId
number of ops:  19
compiled vars:  !0 = $string_to_parse, !1 = $matches, !2 = $array_index, !3 = $sponsor_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2FCOULD+NOT+FIND+AN+OPEN+SPOT+IN+THE+MATRIX+OF+SPONSOR+ID%3A%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->18
   11     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 'COULD+NOT+FIND+AN+OPEN+SPOT+IN+THE+MATRIX+OF+SPONSOR+ID%3A'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !2, $5
   12    12        FETCH_DIM_R                                      ~7      !2, 1
         13        ASSIGN                                                   !3, ~7
   13    14        INIT_FCALL                                               'print_r'
         15        CONCAT                                           ~9      'Sponsor+Id+%3A%3A+', !3
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
   15    18    > > RETURN                                                   null

End of function findsponserid

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.17 ms | 1399 KiB | 20 Q