3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __wakeup() { print "wakeup\n"; } } session_start(); session_decode('fooo|a:1:{i:0;a:1:{s:5:"12345";}}'); var_dump($_SESSION);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6OIEL
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
   10     2        INIT_FCALL                                               'session_decode'
          3        SEND_VAL                                                 'fooo%7Ca%3A1%3A%7Bi%3A0%3Ba%3A1%3A%7Bs%3A5%3A%2212345%22%3B%7D%7D'
          4        DO_ICALL                                                 
   12     5        INIT_FCALL                                               'var_dump'
          6        FETCH_R                      global              ~2      '_SESSION'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function __wakeup

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.51 ms | 1394 KiB | 19 Q