3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vdv9j
function name:  test
number of ops:  3
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    4     1        ECHO                                                     !0
    5     2      > RETURN                                                   null

End of function test

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

End of function getb

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.82 ms | 1397 KiB | 14 Q