3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(5, array(4)); echo '<pre>'; print_r($a); $a = serialize(array(5, array(4))); echo '<pre>'; print_r(unserialize($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QN2FD
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ECHO                                                     '%3Cpre%3E'
    5     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'serialize'
          6        SEND_VAL                                                 <array>
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    8     9        ECHO                                                     '%3Cpre%3E'
   10    10        INIT_FCALL                                               'print_r'
         11        INIT_FCALL                                               'unserialize'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.6 ms | 1394 KiB | 19 Q