3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nickname = "hello1 johns22mith123"; if(preg_match_all('!\d+!', $nickname, $numbers)){ if (isset($numbers[0])){ print_r(end($numbers[0])); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 16
filename:       /in/Okpo8
function name:  (null)
number of ops:  17
compiled vars:  !0 = $nickname, !1 = $numbers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hello1+johns22mith123'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%21%5Cd%2B%21'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->16
    5     7    >   ISSET_ISEMPTY_DIM_OBJ                         0          !1, 0
          8      > JMPZ                                                     ~4, ->16
    6     9    >   INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'end'
         11        FETCH_DIM_W                                      $5      !1, 0
         12        SEND_REF                                                 $5
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1386 KiB | 19 Q