3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = [""=>""]; $bar = (object)$foo; var_dump($bar); $baz = serialize($bar); var_dump($baz); $bar2 = unserialize($baz); var_dump($bar2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7uV45
function name:  (null)
number of ops:  21
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz, !3 = $bar2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        CAST                                          8  ~5      !0
          2        ASSIGN                                                   !1, ~5
    5     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'serialize'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'unserialize'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !3, $11
    9    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.64 ms | 1395 KiB | 19 Q