3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.21 ms | 1399 KiB | 19 Q