3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a'=>'b','c'=>'d','e'=>'f']; echo serialize($arr); echo json_encode($arr); echo msgpack_pack($arr) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8GSdO
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'serialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ECHO                                                     $2
    6     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    7     9        INIT_FCALL_BY_NAME                                       'msgpack_pack'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $4      
         12        ECHO                                                     $4
    8    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.56 ms | 1394 KiB | 17 Q