3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ function __construct($data){ $this->data = $data; } function echo(){ echo $this->data; } } unserialize(serialize(new Test("lol")))->echo(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p6oLu
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'unserialize'
          1        INIT_FCALL                                               'serialize'
          2        NEW                                              $0      'Test'
          3        SEND_VAL_EX                                              'lol'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        INIT_METHOD_CALL                                         $3, 'echo'
         10        DO_FCALL                                      0          
   12    11      > RETURN                                                   1

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p6oLu
function name:  __construct
number of ops:  4
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN_OBJ                                               'data'
          2        OP_DATA                                                  !0
    5     3      > RETURN                                                   null

End of function __construct

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

End of function echo

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.27 ms | 1395 KiB | 17 Q