3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ToS{function __toString(){die("hi");}} //$e=new exception; $e=unserialize('O:9:"Exception":7:{s:7:"message";s:0:"";s:15:"Exceptionstring";s:0:"";s:4:"code";i:0;s:4:"file";s:9:"/in/1Vigq";s:4:"line";i:2;s:14:"Exceptiontrace";a:0:{}s:8:"previous";O:3:"ToS":0:{}}'); echo $e;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T9uGD
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%3A7%3A%7Bs%3A7%3A%22message%22%3Bs%3A0%3A%22%22%3Bs%3A15%3A%22Exceptionstring%22%3Bs%3A0%3A%22%22%3Bs%3A4%3A%22code%22%3Bi%3A0%3Bs%3A4%3A%22file%22%3Bs%3A9%3A%22%2Fin%2F1Vigq%22%3Bs%3A4%3A%22line%22%3Bi%3A2%3Bs%3A14%3A%22Exceptiontrace%22%3Ba%3A0%3A%7B%7Ds%3A8%3A%22previous%22%3BO%3A3%3A%22ToS%22%3A0%3A%7B%7D%7D'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    5     5        ECHO                                                     !0
          6      > RETURN                                                   1

Class ToS:
Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/T9uGD
function name:  __toString
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > EXIT                                                     'hi'
          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:
143.14 ms | 1386 KiB | 15 Q