3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'bar'; print "regular string ... "; var_dump(empty($foo)); #Should be false $xml = simplexml_load_string("<xml><something>somevalue</something></xml>"); $xml2 = simplexml_load_string("<xml>\n<something>somevalue</something>\n</xml>"); foreach($xml as $key => $value) { print "$key = $value ... "; var_dump($value); } foreach($xml2 as $key => $value) { print "$key = $value ... "; var_dump($value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 26
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 26
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 26
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 39
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 39
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
Branch analysis from position: 26
filename:       /in/7MtOn
function name:  (null)
number of ops:  41
compiled vars:  !0 = $foo, !1 = $xml, !2 = $xml2, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'bar'
    3     1        ECHO                                                     'regular+string+...+'
    4     2        INIT_FCALL                                               'var_dump'
          3        ISSET_ISEMPTY_CV                                 ~6      !0
          4        SEND_VAL                                                 ~6
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'simplexml_load_string'
          7        SEND_VAL                                                 '%3Cxml%3E%3Csomething%3Esomevalue%3C%2Fsomething%3E%3C%2Fxml%3E'
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !1, $8
    7    10        INIT_FCALL                                               'simplexml_load_string'
         11        SEND_VAL                                                 '%3Cxml%3E%0A%3Csomething%3Esomevalue%3C%2Fsomething%3E%0A%3C%2Fxml%3E'
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !2, $10
    9    14      > FE_RESET_R                                       $12     !1, ->26
         15    > > FE_FETCH_R                                       ~13     $12, !3, ->26
         16    >   ASSIGN                                                   !4, ~13
   10    17        ROPE_INIT                                     4  ~16     !4
         18        ROPE_ADD                                      1  ~16     ~16, '+%3D+'
         19        ROPE_ADD                                      2  ~16     ~16, !3
         20        ROPE_END                                      3  ~15     ~16, '+...+'
         21        ECHO                                                     ~15
   11    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
    9    25      > JMP                                                      ->15
         26    >   FE_FREE                                                  $12
   14    27      > FE_RESET_R                                       $19     !2, ->39
         28    > > FE_FETCH_R                                       ~20     $19, !3, ->39
         29    >   ASSIGN                                                   !4, ~20
   15    30        ROPE_INIT                                     4  ~23     !4
         31        ROPE_ADD                                      1  ~23     ~23, '+%3D+'
         32        ROPE_ADD                                      2  ~23     ~23, !3
         33        ROPE_END                                      3  ~22     ~23, '+...+'
         34        ECHO                                                     ~22
   16    35        INIT_FCALL                                               'var_dump'
         36        SEND_VAR                                                 !3
         37        DO_ICALL                                                 
   14    38      > JMP                                                      ->28
         39    >   FE_FREE                                                  $19
   17    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.99 ms | 1400 KiB | 17 Q