3v4l.org

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

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

End of function aaa

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

End of function aa

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.42 ms | 1395 KiB | 15 Q