3v4l.org

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

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

End of function find

End of class Model.

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

End of function find

End of class Product.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170 ms | 1393 KiB | 13 Q