3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function exec() { echo "OK"; } } $c = 'Foo::exec'; if (is_callable($c)) { $c(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/oOoAV
function name:  (null)
number of ops:  8
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'Foo%3A%3Aexec'
   12     1        INIT_FCALL                                               'is_callable'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4      > JMPZ                                                     $2, ->7
   13     5    >   INIT_DYNAMIC_CALL                                        !0
          6        DO_FCALL                                      0          
   14     7    > > RETURN                                                   1

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

End of function exec

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.31 ms | 1431 KiB | 14 Q