3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = simplexml_load_string('<bar><baz>0</baz></bar>'); var_dump((bool) $foo->bar->baz);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tnjce
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%3Cbar%3E%3Cbaz%3E0%3C%2Fbaz%3E%3C%2Fbar%3E'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_dump'
          5        FETCH_OBJ_R                                      ~3      !0, 'bar'
          6        FETCH_OBJ_R                                      ~4      ~3, 'baz'
          7        BOOL                                             ~5      ~4
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.21 ms | 1394 KiB | 17 Q