3v4l.org

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

Class A:
Function z:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/egY9F
function name:  z
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ADD                                              ~1      !0, 1
          2      > RETURN                                                   ~1
    5     3*     > RETURN                                                   null

End of function z

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.91 ms | 1394 KiB | 15 Q