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){ echo 'excluded'; return false; } die('Profiler'); } } call_user_func(function(){ // Profiler::excludeRequest(); }); Profiler::create();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a0Ooh
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fa0Ooh%3A23%240'
   25     1        INIT_USER_CALL                                0          'call_user_func', ~0
          2        DO_FCALL                                      0          
   27     3        INIT_STATIC_METHOD_CALL                                  'Profiler', 'create'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fa0Ooh%3A23%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a0Ooh
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fa0Ooh%3A23%240

Class Profiler:
Function excluderequest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a0Ooh
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/a0Ooh
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:
153.21 ms | 1395 KiB | 13 Q