3v4l.org

run code in 500+ PHP versions simultaneously
<?php $emptyXml = simplexml_load_string('<root />'); $xml = simplexml_load_string('<root>foo</root>'); var_dump(!$emptyXml, empty($emptyXml)); var_dump(!$xml, empty($xml));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/74Tc4
function name:  (null)
number of ops:  21
compiled vars:  !0 = $emptyXml, !1 = $xml
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'simplexml_load_string'
          1        SEND_VAL                                                     '%3Croot+%2F%3E'
          2        DO_ICALL                                             $2      
          3        ASSIGN                                                       !0, $2
    4     4        INIT_FCALL                                                   'simplexml_load_string'
          5        SEND_VAL                                                     '%3Croot%3Efoo%3C%2Froot%3E'
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    6     8        INIT_FCALL                                                   'var_dump'
          9        BOOL_NOT                                             ~6      !0
         10        SEND_VAL                                                     ~6
         11        ISSET_ISEMPTY_CV                                     ~7      !0
         12        SEND_VAL                                                     ~7
         13        DO_ICALL                                                     
    7    14        INIT_FCALL                                                   'var_dump'
         15        BOOL_NOT                                             ~9      !1
         16        SEND_VAL                                                     ~9
         17        ISSET_ISEMPTY_CV                                     ~10     !1
         18        SEND_VAL                                                     ~10
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.64 ms | 3318 KiB | 15 Q