3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $one = "111"; function __construct() { echo "construct";} function __destruct() { echo "destruct";} //function __wakeup() { echo "wakeup";} } //$at = new A(); $x = 'C:1:"A":20:{s:3:"one";s:3:"111";}'; echo $x; $u = unserialize($x); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GOD33
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x, !1 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'C%3A1%3A%22A%22%3A20%3A%7Bs%3A3%3A%22one%22%3Bs%3A3%3A%22111%22%3B%7D'
    9     1        ECHO                                                     !0
   10     2        INIT_FCALL                                               'unserialize'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   12     6      > RETURN                                                   1

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

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GOD33
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'destruct'
          1      > RETURN                                                   null

End of function __destruct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.69 ms | 1395 KiB | 15 Q