3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_id = explode(',', '(001),(002),(003)'); foreach ($user_id as $vv) { $user_idd = substr($vv, 1, -1); array_push($user_id, $user_idd); } var_dump($user_id); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/9LUvM
function name:  (null)
number of ops:  23
compiled vars:  !0 = $user_id, !1 = $vv, !2 = $user_idd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%2C'
          2        SEND_VAL                                                 '%28001%29%2C%28002%29%2C%28003%29'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5      > FE_RESET_R                                       $5      !0, ->18
          6    > > FE_FETCH_R                                               $5, !1, ->18
    4     7    >   INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 1
         10        SEND_VAL                                                 -1
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !2, $6
    5    13        INIT_FCALL                                               'array_push'
         14        SEND_REF                                                 !0
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    3    17      > JMP                                                      ->6
         18    >   FE_FREE                                                  $5
    7    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
    8    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.47 ms | 1395 KiB | 21 Q