3v4l.org

run code in 300+ PHP versions simultaneously
<?php class hi { function __wakeup() { echo 'haha'; } function __destruct() { echo 'hi'; } } session_start(); $_SESSION["!"] = '|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/XWChO
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
   12     2        FETCH_W                      global              $1      '_SESSION'
          3        ASSIGN_DIM                                               $1, '%21'
          4        OP_DATA                                                  '%7CO%3A2%3A%22hi%22%3A0%3A%7B%7D'
   13     5        INIT_FCALL                                               'var_dump'
          6        FETCH_R                      global              ~3      '_SESSION'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class hi:
Function __wakeup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XWChO
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/XWChO
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:
156.12 ms | 1386 KiB | 17 Q