3v4l.org

run code in 300+ PHP versions simultaneously
<?php $element = new SimpleXMLElement('<root />'); var_dump((bool)$element); if ($element) { echo '1'; } else { echo '0'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2rtsF
function name:  (null)
number of ops:  13
compiled vars:  !0 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Croot+%2F%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'var_dump'
          5        BOOL                                             ~4      !0
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    4     8      > JMPZ                                                     !0, ->11
    5     9    >   ECHO                                                     '1'
         10      > JMP                                                      ->12
    7    11    >   ECHO                                                     '0'
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.09 ms | 1385 KiB | 15 Q