3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Profiler { static private $_excludeRequest; public function excludeRequest() { self::$_excludeRequest = true; } public function create() { if(self::$_excludeRequest){ echo 'excluded'; 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/tBZab
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_STATIC_METHOD_CALL                                  'Profiler', 'excludeRequest'
          1        DO_FCALL                                      0          
   24     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/tBZab
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 = 4
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/tBZab
function name:  create
number of ops:  6
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, ->4
   15     2    >   ECHO                                                     'excluded'
   16     3      > RETURN                                                   <false>
   19     4    > > EXIT                                                     'Profiler'
   20     5*     > RETURN                                                   null

End of function create

End of class Profiler.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.73 ms | 1394 KiB | 13 Q