3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.12 ms | 1394 KiB | 15 Q