3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hello { private function sayHello() { echo "Hello world!"; } } $obj = new Hello(); echo var_export(method_exists($obj, 'sayHello'), true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ye4hH
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'Hello'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_FCALL                                               'var_export'
          4        INIT_FCALL                                               'method_exists'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'sayHello'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $5      
         11        ECHO                                                     $5
         12      > RETURN                                                   1

Class Hello:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ye4hH
function name:  sayHello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'Hello+world%21'
    6     1      > RETURN                                                   null

End of function sayhello

End of class Hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.87 ms | 1399 KiB | 17 Q