3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Core { function Core() { if ($_GET['hi']) { // exit('hi'); } } function __destruct() { run(); } } function run() { global $core; if (is_object($core)) { phpinfo(); } else { var_dump($core); echo 'fuck'; } } $_GET['hi'] = 1; $core = new Core;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ralbl
function name:  (null)
number of ops:  7
compiled vars:  !0 = $core
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   FETCH_W                      global              $1      '_GET'
          1        ASSIGN_DIM                                               $1, 'hi'
          2        OP_DATA                                                  1
   25     3        NEW                                              $3      'Core'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
          6      > RETURN                                                   1

Function run:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ralbl
function name:  run
number of ops:  11
compiled vars:  !0 = $core
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   BIND_GLOBAL                                              !0, 'core'
   17     1        TYPE_CHECK                                  256          !0
          2      > JMPZ                                                     ~1, ->6
   18     3    >   INIT_FCALL                                               'phpinfo'
          4        DO_ICALL                                                 
          5      > JMP                                                      ->10
   20     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   21     9        ECHO                                                     'fuck'
   23    10    > > RETURN                                                   null

End of function run

Class Core:
Function core:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 3
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
filename:       /in/ralbl
function name:  Core
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_R                      global              ~0      '_GET'
          1        FETCH_DIM_R                                      ~1      ~0, 'hi'
          2      > JMPZ                                                     ~1, ->3
    8     3    > > RETURN                                                   null

End of function core

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ralbl
function name:  __destruct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL_BY_NAME                                       'run'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   null

End of function __destruct

End of class Core.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.66 ms | 1396 KiB | 17 Q