3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = new stdClass(); $user->id = 1; $user->name = 'John Doe'; $foobar = array('foo' => 'bar', 'user' => $user); echo serialize($foobar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eTWOc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $user, !1 = $foobar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN_OBJ                                               !0, 'id'
          4        OP_DATA                                                  1
    4     5        ASSIGN_OBJ                                               !0, 'name'
          6        OP_DATA                                                  'John+Doe'
    6     7        INIT_ARRAY                                       ~7      'bar', 'foo'
          8        ADD_ARRAY_ELEMENT                                ~7      !0, 'user'
          9        ASSIGN                                                   !1, ~7
    7    10        INIT_FCALL                                               'serialize'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        ECHO                                                     $9
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.98 ms | 1398 KiB | 16 Q