3v4l.org

run code in 300+ PHP versions simultaneously
<?php $packed = 'Hello world'; $data = array(); $data[0] = unpack('a5', $packed); $data[1] = unpack('Z5', $packed); var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AuZrK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $packed, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello+world'
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'unpack'
          3        SEND_VAL                                                 'a5'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN_DIM                                               !1, 0
          7        OP_DATA                                                  $5
    5     8        INIT_FCALL                                               'unpack'
          9        SEND_VAL                                                 'Z5'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN_DIM                                               !1, 1
         13        OP_DATA                                                  $7
    6    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.1 ms | 1394 KiB | 17 Q