3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->type = 'cursus'; $a = array('#node' => $o); if ($a['#node'] == 'cursus') { echo 'Cursus'; } else { echo 'Not cursus'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
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: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PDiDj
function name:  (null)
number of ops:  14
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        IS_EQUAL                                                 ~8, 'cursus'
          9      > JMPZ                                                     ~9, ->12
    6    10    >   ECHO                                                     'Cursus'
         11      > JMP                                                      ->13
    9    12    >   ECHO                                                     'Not+cursus'
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.86 ms | 1393 KiB | 13 Q