3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cm404 { public $str = ''; function __construct() { if (isset($_GET['ryat'])) { exit('fuck'); } unset($_GET['hi']); } function __destruct() { global $obj; // if(!is_object($obj)) { // echo 1; //$obj = new cm404(); //} //var_dump($_GET); echo "hi, $_GET[hi]\n"; } } //$_GET['ryat'] = 1; $_GET['hi'] = 'ryat'; $_GET['hihi'] = 'hi'; //$obj = new cm404(); $_GET['hi'] = 'ryat'; $str = 'O:5:"cm404":0:{}'; $o = unserialize($str); echo 'ffffff'; echo 'aaaa'; //$obj3 = new cm404();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Q9pL
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   FETCH_W                      global              $2      '_GET'
          1        ASSIGN_DIM                                               $2, 'hi'
          2        OP_DATA                                                  'ryat'
   27     3        FETCH_W                      global              $4      '_GET'
          4        ASSIGN_DIM                                               $4, 'hihi'
          5        OP_DATA                                                  'hi'
   29     6        FETCH_W                      global              $6      '_GET'
          7        ASSIGN_DIM                                               $6, 'hi'
          8        OP_DATA                                                  'ryat'
   30     9        ASSIGN                                                   !0, 'O%3A5%3A%22cm404%22%3A0%3A%7B%7D'
   31    10        INIT_FCALL                                               'unserialize'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !1, $9
   32    14        ECHO                                                     'ffffff'
   33    15        ECHO                                                     'aaaa'
   34    16      > RETURN                                                   1

Class cm404:
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/6Q9pL
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_IS                                         ~0      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~0, 'ryat'
          2      > JMPZ                                                     ~1, ->4
    8     3    > > EXIT                                                     'fuck'
   11     4    >   FETCH_UNSET                                      $2      '_GET'
          5        UNSET_DIM                                                $2, 'hi'
   12     6      > RETURN                                                   null

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Q9pL
function name:  __destruct
number of ops:  8
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   BIND_GLOBAL                                              !0, 'obj'
   21     1        ROPE_INIT                                     3  ~4      'hi%2C+'
          2        FETCH_R                      global              ~1      '_GET'
          3        FETCH_DIM_R                                      ~2      ~1, 'hi'
          4        ROPE_ADD                                      1  ~4      ~4, ~2
          5        ROPE_END                                      2  ~3      ~4, '%0A'
          6        ECHO                                                     ~3
   22     7      > RETURN                                                   null

End of function __destruct

End of class cm404.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.42 ms | 1392 KiB | 15 Q