3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); class A extends SimpleXMLElement { } $delimiter = "--------------------------------------------------------------------------------\n"; echo $delimiter; $xml1 = <<<XML <?xml version="1.0"?> <a> <b> <c> <value>Some Value</value> </c> </b> </a> XML; $a1 = new A($xml1); foreach ($a1->b->children() as $key => $value) { var_dump((bool)$value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/6gSoA
function name:  (null)
number of ops:  23
compiled vars:  !0 = $delimiter, !1 = $xml1, !2 = $a1, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    9     3        ASSIGN                                                   !0, '--------------------------------------------------------------------------------%0A'
   11     4        ECHO                                                     !0
   13     5        ASSIGN                                                   !1, '%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Ca%3E%0A++++%3Cb%3E%0A++++++++%3Cc%3E%0A++++++++++++%3Cvalue%3ESome+Value%3C%2Fvalue%3E%0A++++++++%3C%2Fc%3E%0A++++%3C%2Fb%3E%0A%3C%2Fa%3E'
   24     6        NEW                                              $8      'A'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !2, $8
   26    10        FETCH_OBJ_R                                      ~11     !2, 'b'
         11        INIT_METHOD_CALL                                         ~11, 'children'
         12        DO_FCALL                                      0  $12     
         13      > FE_RESET_R                                       $13     $12, ->21
         14    > > FE_FETCH_R                                       ~14     $13, !3, ->21
         15    >   ASSIGN                                                   !4, ~14
   27    16        INIT_FCALL                                               'var_dump'
         17        BOOL                                             ~16     !3
         18        SEND_VAL                                                 ~16
         19        DO_ICALL                                                 
   26    20      > JMP                                                      ->14
         21    >   FE_FREE                                                  $13
   28    22      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.24 ms | 1395 KiB | 17 Q