3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __wakeup() { print "wakeup\n"; } } session_start(); session_decode('core|a:1:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:49:"}}test|a:2:{i:0;O:4:"Test":0:{}i:1;a:1:{i:0;s:0:"";}}'); var_dump($_SESSION);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9SYPn
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                                                 'core%7Ca%3A1%3A%7Bs%3A23%3A%22_session_validator_data%22%3Ba%3A4%3A%7Bs%3A11%3A%22remote_addr%22%3Bs%3A9%3A%22127.0.0.1%22%3Bs%3A8%3A%22http_via%22%3Bs%3A0%3A%22%22%3Bs%3A20%3A%22http_x_forwarded_for%22%3Bs%3A0%3A%22%22%3Bs%3A15%3A%22http_user_agent%22%3Bs%3A49%3A%22%7D%7Dtest%7Ca%3A2%3A%7Bi%3A0%3BO%3A4%3A%22Test%22%3A0%3A%7B%7Di%3A1%3Ba%3A1%3A%7Bi%3A0%3Bs%3A0%3A%22%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/9SYPn
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:
149.53 ms | 1395 KiB | 19 Q