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); $cldr = $a1->b->c->children(); var_dump(empty($cldr)); var_dump((bool)$cldr); foreach ($a1->b->c->children() as $key => $value) { var_dump((bool)(string)$value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 36
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 36
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/arVt0
function name:  (null)
number of ops:  38
compiled vars:  !0 = $delimiter, !1 = $xml1, !2 = $a1, !3 = $cldr, !4 = $value, !5 = $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                                              $9      'A'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !2, $9
   25    10        FETCH_OBJ_R                                      ~12     !2, 'b'
         11        FETCH_OBJ_R                                      ~13     ~12, 'c'
         12        INIT_METHOD_CALL                                         ~13, 'children'
         13        DO_FCALL                                      0  $14     
         14        ASSIGN                                                   !3, $14
   26    15        INIT_FCALL                                               'var_dump'
         16        ISSET_ISEMPTY_CV                                 ~16     !3
         17        SEND_VAL                                                 ~16
         18        DO_ICALL                                                 
   27    19        INIT_FCALL                                               'var_dump'
         20        BOOL                                             ~18     !3
         21        SEND_VAL                                                 ~18
         22        DO_ICALL                                                 
   28    23        FETCH_OBJ_R                                      ~20     !2, 'b'
         24        FETCH_OBJ_R                                      ~21     ~20, 'c'
         25        INIT_METHOD_CALL                                         ~21, 'children'
         26        DO_FCALL                                      0  $22     
         27      > FE_RESET_R                                       $23     $22, ->36
         28    > > FE_FETCH_R                                       ~24     $23, !4, ->36
         29    >   ASSIGN                                                   !5, ~24
   29    30        INIT_FCALL                                               'var_dump'
         31        CAST                                          6  ~26     !4
         32        BOOL                                             ~27     ~26
         33        SEND_VAL                                                 ~27
         34        DO_ICALL                                                 
   28    35      > JMP                                                      ->28
         36    >   FE_FREE                                                  $23
   30    37      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.41 ms | 1392 KiB | 17 Q