3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ToS{var $message; var $file; function getMessage(){return $this->message;}function __toString(){die("hi there");}} //$e=new exception; $e=unserialize('O:9:"Exception":1:{s:19:"'."\0".'Exception'."\0".'previous";O:3:"ToS":2:{s:7:"message";s:2:"hi";s:4:"file";s:3:"bye";}}'); echo $e;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tvgk1
function name:  (null)
number of ops:  7
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'tos'
    4     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAL                                                 'O%3A9%3A%22Exception%22%3A1%3A%7Bs%3A19%3A%22%00Exception%00previous%22%3BO%3A3%3A%22ToS%22%3A2%3A%7Bs%3A7%3A%22message%22%3Bs%3A2%3A%22hi%22%3Bs%3A4%3A%22file%22%3Bs%3A3%3A%22bye%22%3B%7D%7D'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    5     5        ECHO                                                     !0
          6      > RETURN                                                   1

Class ToS:
Function getmessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tvgk1
function name:  getMessage
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_OBJ_R                                      ~0      'message'
          1      > RETURN                                                   ~0
          2*     > RETURN                                                   null

End of function getmessage

Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/tvgk1
function name:  __toString
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E > > EXIT                                                     'hi+there'
          1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function __tostring

End of class ToS.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.2 ms | 1395 KiB | 15 Q