3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Ref { public $input; public $flag; } $obj = new Ref(); // On lie input et flag par référence $obj->input = &$obj->flag; // Sérialisation et encodage $payload = base64_encode(serialize($obj)); echo $payload; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nMnhX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $obj, !1 = $payload
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $2      'Ref'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    9     3        FETCH_OBJ_W                                          $6      !0, 'flag'
          4        MAKE_REF                                             $7      $6
          5        ASSIGN_OBJ_REF                                               !0, 'input'
          6        OP_DATA                                                      $7
   12     7        INIT_FCALL                                                   'base64_encode'
          8        INIT_FCALL                                                   'serialize'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                             $8      
         11        SEND_VAR                                                     $8
         12        DO_ICALL                                             $9      
         13        ASSIGN                                                       !1, $9
   13    14        ECHO                                                         !1
   14    15      > RETURN                                                       1

Class Ref: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.32 ms | 1355 KiB | 15 Q