3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { private static $sfoo = 1; private $ifoo = 2; } $cl1 = static function() { return A::$sfoo; }; echo $cl1(), "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iLVpZ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $cl1
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          1        ASSIGN                                                       !0, ~1
   10     2        INIT_DYNAMIC_CALL                                            !0
          3        DO_FCALL                                          0  $3      
          4        ECHO                                                         $3
          5        ECHO                                                         '%0A'
   11     6      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iLVpZ
function name:  {closure:/in/iLVpZ:6}
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      'sfoo'
          1      > RETURN                                                       ~0
    8     2*     > RETURN                                                       null

End of Dynamic Function 0

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.53 ms | 1660 KiB | 8 Q