3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ protected $something; public function do() { return $this->something; } } $t = new Test; $j = $t->do(); var_dump($j);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PWbal
function name:  (null)
number of ops:  10
compiled vars:  !0 = $t, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        INIT_METHOD_CALL                                         !0, 'do'
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
   15     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class Test:
Function do:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PWbal
function name:  do
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'something'
          1      > RETURN                                                   ~0
    8     2*     > RETURN                                                   null

End of function do

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.53 ms | 1386 KiB | 15 Q