3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller { public function myAction() { } public static function myStaticAction() { } } function test_callable(callable $callable) { var_export($callable); } test_callable(['Controller', 'myStaticAction']); test_callable(['Controller', 'myAction']); // Deprecated since PHP 7 test_callable(['Controller', 'notExistingMethod']); // Fatal error: Uncaught TypeError
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ORMQ3
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'test_callable'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0          
   23     3        INIT_FCALL                                               'test_callable'
          4        SEND_VAL                                                 <array>
          5        DO_FCALL                                      0          
   25     6        INIT_FCALL                                               'test_callable'
          7        SEND_VAL                                                 <array>
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function test_callable:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ORMQ3
function name:  test_callable
number of ops:  5
compiled vars:  !0 = $callable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        INIT_FCALL                                               'var_export'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   19     4      > RETURN                                                   null

End of function test_callable

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

End of function myaction

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

End of function mystaticaction

End of class Controller.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.04 ms | 1402 KiB | 19 Q