3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<tag></tag>'); if($xml) { echo '$xml is truthy'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/Kb1G7
function name:  (null)
number of ops:  7
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Ctag%3E%3C%2Ftag%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4      > JMPZ                                                     !0, ->6
    4     5    >   ECHO                                                     '%24xml+is+truthy'
    5     6    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.45 ms | 937 KiB | 14 Q