3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! class Foo { static function bar() { } } $klass = 'Foo'; $method = 'bar'; var_dump(is_callable($klass::$method));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/COf8e
function name:  (null)
number of ops:  11
compiled vars:  !0 = $klass, !1 = $method
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, 'Foo'
   14     1        ASSIGN                                                   !1, 'bar'
   16     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'is_callable'
          4        FETCH_CLASS                                   0  $4      !0
          5        FETCH_STATIC_PROP_R          unknown             ~5      'method'
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.93 ms | 1394 KiB | 17 Q