3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class Example { function pub(){} } $callables = array( // array('Example','pub'), 'Example::pub', ); foreach ($callables as $c) { var_dump(is_callable($c)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/UmBLj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $callables, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    9     3        ASSIGN                                                   !0, <array>
   14     4      > FE_RESET_R                                       $4      !0, ->13
          5    > > FE_FETCH_R                                               $4, !1, ->13
   15     6    >   INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'is_callable'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
   14    12      > JMP                                                      ->5
         13    >   FE_FREE                                                  $4
   16    14      > RETURN                                                   1

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

End of function pub

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.44 ms | 1395 KiB | 19 Q