3v4l.org

run code in 300+ PHP versions simultaneously
<?php class p { protected $a; private $b; public function pub($obj = null) { $obj = new self; //$obj-> } protected function abc() { //return $ } private function asd() { } } $o = new p; echo $o->a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aFgDV
function name:  (null)
number of ops:  6
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   NEW                                              $1      'p'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   30     3        FETCH_OBJ_R                                      ~4      !0, 'a'
          4        ECHO                                                     ~4
          5      > RETURN                                                   1

Class p:
Function pub:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aFgDV
function name:  pub
number of ops:  5
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV_INIT                                        !0      null
   12     1        NEW                          self                $1      
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4      > RETURN                                                   null

End of function pub

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aFgDV
function name:  abc
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E > > RETURN                                                   null

End of function abc

Function asd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aFgDV
function name:  asd
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                   null

End of function asd

End of class p.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.54 ms | 1394 KiB | 13 Q