3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { return 'foobar'; } } class FooParent extends Foo { } $callable = [FooParent::class, 'parent::bar']; assert(\is_callable($callable)); $callable();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/osqsf
function name:  (null)
number of ops:  12
compiled vars:  !0 = $callable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, <array>
   15     1        ASSERT_CHECK                                             
          2        INIT_FCALL                                               'assert'
          3        INIT_FCALL                                               'is_callable'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        SEND_VAL                                                 'assert%28%5Cis_callable%28%24callable%29%29'
          8        DO_ICALL                                                 
   17     9        INIT_DYNAMIC_CALL                                        !0
         10        DO_FCALL                                      0          
   21    11      > RETURN                                                   1

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

End of function bar

End of class Foo.

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

End of function bar

End of class FooParent.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.5 ms | 940 KiB | 18 Q