3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __construct(){ c::flerp(); } } class b { protected static $abc; public function flerp() { static::$abc = 1; } } class c extends b { } new a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lc6KG
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $0      'a'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class a:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lc6KG
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_STATIC_METHOD_CALL                                  'c', 'flerp'
          1        DO_FCALL                                      0          
    5     2      > RETURN                                                   null

End of function __construct

End of class a.

Class b:
Function flerp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lc6KG
function name:  flerp
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN_STATIC_PROP                                       'abc'
          1        OP_DATA                                                  1
   13     2      > RETURN                                                   null

End of function flerp

End of class b.

Class c:
Function flerp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lc6KG
function name:  flerp
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN_STATIC_PROP                                       'abc'
          1        OP_DATA                                                  1
   13     2      > RETURN                                                   null

End of function flerp

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.5 ms | 1394 KiB | 13 Q