3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $a->b = 1; $a->c = 2; $d = 3; echo serialize(array($a,array($d, 4)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FkiFH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $d
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, 'b'
          4        OP_DATA                                                  1
    4     5        ASSIGN_OBJ                                               !0, 'c'
          6        OP_DATA                                                  2
    5     7        ASSIGN                                                   !1, 3
    6     8        INIT_FCALL                                               'serialize'
          9        INIT_ARRAY                                       ~8      !0
         10        INIT_ARRAY                                       ~9      !1
         11        ADD_ARRAY_ELEMENT                                ~9      4
         12        ADD_ARRAY_ELEMENT                                ~8      ~9
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $10     
         15        ECHO                                                     $10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.42 ms | 1394 KiB | 15 Q