3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_id1 = explode(',', '(001),(002),(003)'); $user_id= array(); foreach ($user_id1 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 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/ucLYB
function name:  (null)
number of ops:  24
compiled vars:  !0 = $user_id1, !1 = $user_id, !2 = $vv, !3 = $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                                         $4      
          4        ASSIGN                                                   !0, $4
    3     5        ASSIGN                                                   !1, <array>
    4     6      > FE_RESET_R                                       $7      !0, ->19
          7    > > FE_FETCH_R                                               $7, !2, ->19
    5     8    >   INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 1
         11        SEND_VAL                                                 -1
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !3, $8
    6    14        INIT_FCALL                                               'array_push'
         15        SEND_REF                                                 !1
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
    4    18      > JMP                                                      ->7
         19    >   FE_FREE                                                  $7
    8    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
    9    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.19 ms | 1395 KiB | 21 Q