3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Router { public function dispatch() { return var_dump(is_callable('Router::handleHuman')); } private function handleHuman() { echo 'Human Handled'; } } $router = new Router; $router->dispatch(); var_dump(class_exists('Router'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bIGuH
function name:  (null)
number of ops:  12
compiled vars:  !0 = $router
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Router'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'dispatch'
          4        DO_FCALL                                      0          
   19     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'class_exists'
          7        SEND_VAL                                                 'Router'
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Router:
Function dispatch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bIGuH
function name:  dispatch
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_callable'
          2        SEND_VAL                                                 'Router%3A%3AhandleHuman'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    7     7*     > RETURN                                                   null

End of function dispatch

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

End of function handlehuman

End of class Router.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.41 ms | 1401 KiB | 19 Q