3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array( 'notices' => array( 'a','b','c' ) ); $xml = new SimpleXMLElement('<root/>'); array_walk_recursive($a, array ($xml, 'addChild')); //var_dump($xml->nichts->hasChildren()); var_dump(isset($xml->nichts)); $b = $xml->nichts->children(); print_r($b->count()); if ($b) { foreach ($b as $c) { //n } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 28
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 29
filename:       /in/AX9mG
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a, !1 = $xml, !2 = $b, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        NEW                                              $5      'SimpleXMLElement'
          2        SEND_VAL_EX                                              '%3Croot%2F%3E'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
   10     5        INIT_FCALL                                               'array_walk_recursive'
          6        SEND_REF                                                 !0
          7        INIT_ARRAY                                       ~8      !1
          8        ADD_ARRAY_ELEMENT                                ~8      'addChild'
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
   12    11        INIT_FCALL                                               'var_dump'
         12        ISSET_ISEMPTY_PROP_OBJ                           ~10     !1, 'nichts'
         13        SEND_VAL                                                 ~10
         14        DO_ICALL                                                 
   13    15        FETCH_OBJ_R                                      ~12     !1, 'nichts'
         16        INIT_METHOD_CALL                                         ~12, 'children'
         17        DO_FCALL                                      0  $13     
         18        ASSIGN                                                   !2, $13
   14    19        INIT_FCALL                                               'print_r'
         20        INIT_METHOD_CALL                                         !2, 'count'
         21        DO_FCALL                                      0  $15     
         22        SEND_VAR                                                 $15
         23        DO_ICALL                                                 
   15    24      > JMPZ                                                     !2, ->29
   16    25    > > FE_RESET_R                                       $17     !2, ->28
         26    > > FE_FETCH_R                                               $17, !3, ->28
         27    > > JMP                                                      ->26
         28    >   FE_FREE                                                  $17
   19    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.1 ms | 1396 KiB | 19 Q