3v4l.org

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

Class A:
Function s:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HH85e
function name:  s
number of ops:  5
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     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.17 ms | 1393 KiB | 13 Q