3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Node { protected $nid; public function __construct($nid) { $this->nid = $nid; } } $node = new Node(12); if (isset($node->book['bid'])) { print 'it is a book node'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/dOJMD
function name:  (null)
number of ops:  9
compiled vars:  !0 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Node'
          1        SEND_VAL_EX                                              12
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   13     4        FETCH_OBJ_IS                                     ~4      !0, 'book'
          5        ISSET_ISEMPTY_DIM_OBJ                         0          ~4, 'bid'
          6      > JMPZ                                                     ~5, ->8
   14     7    >   ECHO                                                     'it+is+a+book+node'
   15     8    > > RETURN                                                   1

Class Node:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dOJMD
function name:  __construct
number of ops:  4
compiled vars:  !0 = $nid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'nid'
          2        OP_DATA                                                  !0
    8     3      > RETURN                                                   null

End of function __construct

End of class Node.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.61 ms | 1393 KiB | 13 Q