3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $blah =''; private function __construct($blah) { $this->blah = $blah; } public function getBlah() { return $this->blah; } } $baz = new foo('hello'); var_dump($baz->getBlah());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GAeYj
function name:  (null)
number of ops:  10
compiled vars:  !0 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'foo'
          1        SEND_VAL_EX                                              'hello'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   20     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'getBlah'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function __construct

Function getblah:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GAeYj
function name:  getBlah
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'blah'
          1      > RETURN                                                   ~0
   15     2*     > RETURN                                                   null

End of function getblah

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1395 KiB | 15 Q