3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "count" => 1, [ "member" => [ "count" => 3, "CN=Mike Jones,CN=Users,DC=DOMAIN,DC=NET", "CN=Van Smith,CN=Users,DC=DOMAIN,DC=NET", "CN=Jane Doe,CN=Users,DC=DOMAIN,DC=NET", ], "member", "count" => 1, "dn" => "CN=Cool Guys,CN=Users,DC=DOMAIN,DC=NET" ] ]; foreach ($array[0]["member"] as $key => $member) { if (is_int($key)) { echo explode('=', explode(',', $member)[0])[1] . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 20
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/3rhko
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array, !1 = $member, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        FETCH_DIM_R                                      ~4      !0, 0
          2        FETCH_DIM_R                                      ~5      ~4, 'member'
          3      > FE_RESET_R                                       $6      ~5, ->21
          4    > > FE_FETCH_R                                       ~7      $6, !1, ->21
          5    >   ASSIGN                                                   !2, ~7
   19     6        TYPE_CHECK                                   16          !2
          7      > JMPZ                                                     ~9, ->20
   20     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%3D'
         10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 '%2C'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $10     
         14        FETCH_DIM_R                                      ~11     $10, 0
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                         $12     
         17        FETCH_DIM_R                                      ~13     $12, 1
         18        CONCAT                                           ~14     ~13, '%0A'
         19        ECHO                                                     ~14
   18    20    > > JMP                                                      ->4
         21    >   FE_FREE                                                  $6
   22    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.58 ms | 1426 KiB | 14 Q