3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array["a"] = "Foo"; $array["b"] = "Bar"; $array["c"] = "Baz"; $array["d"] = "Wom"; $str = serialize($array); $strenc = urlencode($str); print $str . "\n"; print $strenc . "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uG05l
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array, !1 = $str, !2 = $strenc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'a'
          1        OP_DATA                                                  'Foo'
    3     2        ASSIGN_DIM                                               !0, 'b'
          3        OP_DATA                                                  'Bar'
    4     4        ASSIGN_DIM                                               !0, 'c'
          5        OP_DATA                                                  'Baz'
    5     6        ASSIGN_DIM                                               !0, 'd'
          7        OP_DATA                                                  'Wom'
    7     8        INIT_FCALL                                               'serialize'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    8    12        INIT_FCALL                                               'urlencode'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !2, $9
    9    16        CONCAT                                           ~11     !1, '%0A'
         17        ECHO                                                     ~11
   10    18        CONCAT                                           ~12     !2, '%0A'
         19        ECHO                                                     ~12
   11    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.73 ms | 1395 KiB | 17 Q