3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Profiler { static private $_excludeRequest; public static function excludeRequest() { self::$_excludeRequest = true; } public static function create() { if(self::$_excludeRequest){ return false; } die('Profiler'); } } Profiler::excludeRequest(); Profiler::create();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ivkvv
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_STATIC_METHOD_CALL                                  'Profiler', 'excludeRequest'
          1        DO_FCALL                                      0          
   23     2        INIT_STATIC_METHOD_CALL                                  'Profiler', 'create'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class Profiler:
Function excluderequest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ivkvv
function name:  excludeRequest
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_STATIC_PROP                                       '_excludeRequest'
          1        OP_DATA                                                  <true>
   10     2      > RETURN                                                   null

End of function excluderequest

Function create:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/Ivkvv
function name:  create
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      '_excludeRequest'
          1      > JMPZ                                                     ~0, ->3
   15     2    > > RETURN                                                   <false>
   18     3    > > EXIT                                                     'Profiler'
   19     4*     > RETURN                                                   null

End of function create

End of class Profiler.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.15 ms | 1398 KiB | 13 Q