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) { var_dump($value); } foreach($xml2 as $key => $value) { var_dump($value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 21
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 21
filename:       /in/7vXEg
function name:  (null)
number of ops:  31
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, ->21
         15    > > FE_FETCH_R                                       ~13     $12, !3, ->21
         16    >   ASSIGN                                                   !4, ~13
   10    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
    9    20      > JMP                                                      ->15
         21    >   FE_FREE                                                  $12
   13    22      > FE_RESET_R                                       $16     !2, ->29
         23    > > FE_FETCH_R                                       ~17     $16, !3, ->29
         24    >   ASSIGN                                                   !4, ~17
   14    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                                 
   13    28      > JMP                                                      ->23
         29    >   FE_FREE                                                  $16
   15    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.59 ms | 1396 KiB | 17 Q