3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function test(){echo 'test';} public static function b(){ $a = new self; $cb=array($a, 'test'); $cb(); } } A::b();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sLISe
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'b'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function test

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sLISe
function name:  b
number of ops:  9
compiled vars:  !0 = $a, !1 = $cb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                          self                $2      
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        INIT_ARRAY                                       ~5      !0
          4        ADD_ARRAY_ELEMENT                                ~5      'test'
          5        ASSIGN                                                   !1, ~5
   14     6        INIT_DYNAMIC_CALL                                        !1
          7        DO_FCALL                                      0          
   16     8      > RETURN                                                   null

End of function b

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.46 ms | 1385 KiB | 13 Q