3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Token implements \Serializable { public function serialize() {} public function unserialize($str) { $r = unserialize($str); unserialize($r[2]); } } $token = 'gjhg jgt uybjh guy gyugkjh kjhiu h'; $obj = unserialize($token);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m3SW7
function name:  (null)
number of ops:  7
compiled vars:  !0 = $token, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'token'
   15     1        ASSIGN                                                   !0, 'gjhg+jgt+uybjh+guy+gyugkjh+kjhiu+h'
   16     2        INIT_FCALL                                               'unserialize'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
          6      > RETURN                                                   1

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

End of function serialize

Function unserialize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m3SW7
function name:  unserialize
number of ops:  10
compiled vars:  !0 = $str, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !1, $2
   10     5        INIT_FCALL                                               'unserialize'
          6        FETCH_DIM_R                                      ~4      !1, 2
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
   11     9      > RETURN                                                   null

End of function unserialize

End of class Token.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.89 ms | 1395 KiB | 15 Q