3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Core { function __construct() { if ($_GET['hi']) { exit('hi'); } echo 'haha'; } function __destruct() { if (is_object($GLOBALS['core'])) { phpinfo(); } else { 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/Lij2t
function name:  (null)
number of ops:  7
compiled vars:  !0 = $core
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   FETCH_W                      global              $1      '_GET'
          1        ASSIGN_DIM                                               $1, 'hi'
          2        OP_DATA                                                  1
   21     3        NEW                                              $3      'Core'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
          6      > RETURN                                                   1

Class Core:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lij2t
function name:  __construct
number of ops:  6
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, ->4
    6     3    > > EXIT                                                     'hi'
    8     4    >   ECHO                                                     'haha'
    9     5      > RETURN                                                   null

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lij2t
function name:  __destruct
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_R                      global              ~0      'GLOBALS'
          1        FETCH_DIM_R                                      ~1      ~0, 'core'
          2        TYPE_CHECK                                  256          ~1
          3      > JMPZ                                                     ~2, ->7
   13     4    >   INIT_FCALL                                               'phpinfo'
          5        DO_ICALL                                                 
          6      > JMP                                                      ->8
   15     7    >   ECHO                                                     'fuck'
   17     8    > > RETURN                                                   null

End of function __destruct

End of class Core.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.36 ms | 1396 KiB | 15 Q