3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = NULL; if ( !empty( $foo ) ) { if ( is_object( $foo )) { $unserializedfoo = unserialize( $foo->bar ); } } else { die(); } echo array(1,2,3); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/I0FBq
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $unserializedfoo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, null
    6     1        ISSET_ISEMPTY_CV                                 ~3      !0
          2        BOOL_NOT                                         ~4      ~3
          3      > JMPZ                                                     ~4, ->12
    7     4    >   TYPE_CHECK                                  256          !0
          5      > JMPZ                                                     ~5, ->11
    8     6    >   INIT_FCALL                                               'unserialize'
          7        FETCH_OBJ_R                                      ~6      !0, 'bar'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
         11    > > JMP                                                      ->13
   11    12    > > EXIT                                                     
   14    13    >   ECHO                                                     <array>
   15    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.46 ms | 1394 KiB | 15 Q