3v4l.org

run code in 300+ PHP versions simultaneously
<?php class hi { function __wakeup() { echo 'haha'; } function __destruct() { echo 'hi'; } } $str = '!'; session_start(); $_SESSION[$str] = '|O:2:"hi":0:{}'; var_dump($_SESSION);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L7cIL
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, '%21'
   12     1        INIT_FCALL                                               'session_start'
          2        DO_ICALL                                                 
   13     3        FETCH_W                      global              $3      '_SESSION'
          4        ASSIGN_DIM                                               $3, !0
          5        OP_DATA                                                  '%7CO%3A2%3A%22hi%22%3A0%3A%7B%7D'
   14     6        INIT_FCALL                                               'var_dump'
          7        FETCH_R                      global              ~5      '_SESSION'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class hi:
Function __wakeup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L7cIL
function name:  __wakeup
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'haha'
    6     1      > RETURN                                                   null

End of function __wakeup

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

End of function __destruct

End of class hi.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.37 ms | 1395 KiB | 17 Q