3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { echo 'Hello from ctor', PHP_EOL; } public function test() {} public function delta() {} } var_dump(is_callable(['test', 'delta'])); var_dump(is_callable(['test', 'test'])); var_dump(is_callable(['test', '__construct'])); call_user_func(['test', '__construct']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YH7T5
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_callable'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   12     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'is_callable'
          8        SEND_VAL                                                 <array>
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
   13    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'is_callable'
         14        SEND_VAL                                                 <array>
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
   15    18        INIT_USER_CALL                                0          'call_user_func', <array>
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

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

End of function __construct

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

End of function test

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

End of function delta

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.35 ms | 1396 KiB | 17 Q