3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new Stdclass(); $obj->name = "test"; $obj->age = 30; $str = serialize($obj); $obj2 = unserialize($str); echo $obj2->name;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ne2tR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $obj, !1 = $str, !2 = $obj2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'Stdclass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN_OBJ                                               !0, 'name'
          4        OP_DATA                                                  'test'
    5     5        ASSIGN_OBJ                                               !0, 'age'
          6        OP_DATA                                                  30
    7     7        INIT_FCALL                                               'serialize'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !1, $8
    8    11        INIT_FCALL                                               'unserialize'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !2, $10
   10    15        FETCH_OBJ_R                                      ~12     !2, 'name'
         16        ECHO                                                     ~12
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1394 KiB | 17 Q