3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Sekai_Game{ public $start = True; public function __destruct(){ echo "__destruct\n"; if($this->start === True){ echo "Sekai Game Start Here is your flag ".getenv('FLAG'); } } public function __wakeup(){ echo "__wakeup\n"; $this->start=False; } } $data='C:10:"Sekai_Game":0:{}'; unserialize($data); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ihNnN
function name:  (null)
number of ops:  5
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, 'C%3A10%3A%22Sekai_Game%22%3A0%3A%7B%7D'
   16     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   17     4      > RETURN                                                   1

Class Sekai_Game:
Function __destruct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/ihNnN
function name:  __destruct
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '__destruct%0A'
    6     1        FETCH_OBJ_R                                      ~0      'start'
          2        TYPE_CHECK                                    8          ~0
          3      > JMPZ                                                     ~1, ->9
    7     4    >   INIT_FCALL                                               'getenv'
          5        SEND_VAL                                                 'FLAG'
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      'Sekai+Game+Start+Here+is+your+flag+', $2
          8        ECHO                                                     ~3
    9     9    > > RETURN                                                   null

End of function __destruct

Function __wakeup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ihNnN
function name:  __wakeup
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     '__wakeup%0A'
   12     1        ASSIGN_OBJ                                               'start'
          2        OP_DATA                                                  <false>
   13     3      > RETURN                                                   null

End of function __wakeup

End of class Sekai_Game.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.14 ms | 999 KiB | 15 Q