3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a="foo"; var_dump($a instanceof stdClass); var_dump("foo" instanceof stdClass); if (isset($offset)) { $this->context[$offset] = $value; } else { $this->context[] = $value; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cPibK
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $offset, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foo'
    3     1        INIT_FCALL                                               'var_dump'
          2        INSTANCEOF                                       ~4      !0, 'stdClass'
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAL                                                 <false>
          7        DO_ICALL                                                 
    7     8        ISSET_ISEMPTY_CV                                         !1
          9      > JMPZ                                                     ~7, ->15
    8    10    >   FETCH_THIS                                       $8      
         11        FETCH_OBJ_W                                      $9      $8, 'context'
         12        ASSIGN_DIM                                               $9, !1
         13        OP_DATA                                                  !2
         14      > JMP                                                      ->19
   11    15    >   FETCH_THIS                                       $11     
         16        FETCH_OBJ_W                                      $12     $11, 'context'
         17        ASSIGN_DIM                                               $12
         18        OP_DATA                                                  !2
   15    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.28 ms | 1395 KiB | 15 Q