3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.91 ms | 1398 KiB | 17 Q