3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { /** @return A */ public function __construct() { echo __METHOD__; } /** @return A */ public static function s() {static $r; return intval(isset($r));} } A::s(); A::s();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7o5SN
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 's'
          1        DO_FCALL                                      0          
   12     2        INIT_STATIC_METHOD_CALL                                  'A', 's'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function __construct

Function s:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7o5SN
function name:  s
number of ops:  5
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   BIND_STATIC                                              !0
          1        ISSET_ISEMPTY_CV                                 ~1      !0
          2        CAST                                          4  ~2      ~1
          3      > RETURN                                                   ~2
          4*     > RETURN                                                   null

End of function s

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.97 ms | 1385 KiB | 13 Q