3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = simplexml_load_string('<a><b></b></a>'); var_dump(!empty($a)); var_dump((bool) $a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LBkjG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%3Ca%3E%3Cb%3E%3C%2Fb%3E%3C%2Fa%3E'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_dump'
          5        ISSET_ISEMPTY_CV                                 ~3      !0
          6        BOOL_NOT                                         ~4      ~3
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        BOOL                                             ~6      !0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.63 ms | 997 KiB | 15 Q