3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->type = 'cursus'; $a = array('#node' => $o); if ($a['#node']->type == 'cursus') { echo 'Cursus'; } else { echo 'Not cursus'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J2vGe
function name:  (null)
number of ops:  15
compiled vars:  !0 = $o, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN_OBJ                                               !0, 'type'
          4        OP_DATA                                                  'cursus'
    4     5        INIT_ARRAY                                       ~6      !0, '%23node'
          6        ASSIGN                                                   !1, ~6
    5     7        FETCH_DIM_R                                      ~8      !1, '%23node'
          8        FETCH_OBJ_R                                      ~9      ~8, 'type'
          9        IS_EQUAL                                                 ~9, 'cursus'
         10      > JMPZ                                                     ~10, ->13
    6    11    >   ECHO                                                     'Cursus'
         12      > JMP                                                      ->14
    9    13    >   ECHO                                                     'Not+cursus'
   10    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.81 ms | 1393 KiB | 13 Q