3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a'=>'b','c'=>'d','e'=>'f']; echo serialize($arr).'<br>'; echo json_encode($arr).'<br>'; echo msgpack_pack($arr) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZgUXD
function name:  (null)
number of ops:  16
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        CONCAT                                           ~3      $2, '%3Cbr%3E'
          5        ECHO                                                     ~3
    6     6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      $4, '%3Cbr%3E'
         10        ECHO                                                     ~5
    7    11        INIT_FCALL_BY_NAME                                       'msgpack_pack'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $6      
         14        ECHO                                                     $6
    8    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.21 ms | 1394 KiB | 17 Q