3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new stdClass(); $d->foo = 'bar'; $reference['something'] = array(array($d, 'blah')); $static['something'] = array(array(get_class($d), 'blah')); print serialize($reference); print "\n"; print serialize($static);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ALTTj
function name:  (null)
number of ops:  26
compiled vars:  !0 = $d, !1 = $reference, !2 = $static
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  'bar'
    6     5        INIT_ARRAY                                       ~8      !0
          6        ADD_ARRAY_ELEMENT                                ~8      'blah'
          7        INIT_ARRAY                                       ~9      ~8
          8        ASSIGN_DIM                                               !1, 'something'
          9        OP_DATA                                                  ~9
    7    10        GET_CLASS                                        ~11     !0
         11        INIT_ARRAY                                       ~12     ~11
         12        ADD_ARRAY_ELEMENT                                ~12     'blah'
         13        INIT_ARRAY                                       ~13     ~12
         14        ASSIGN_DIM                                               !2, 'something'
         15        OP_DATA                                                  ~13
    9    16        INIT_FCALL                                               'serialize'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $14     
         19        ECHO                                                     $14
   10    20        ECHO                                                     '%0A'
   11    21        INIT_FCALL                                               'serialize'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                         $15     
         24        ECHO                                                     $15
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.89 ms | 1399 KiB | 15 Q