3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = '0000410075007200' . '75006d002000490054'; $f = function ($offset, $step) use ($n) { $max = strlen($n); while ($offset < $max) { yield '0x' . substr($n, $offset, 2); $offset += $step + 2; } }; foreach ($f(4,2) as $n) { echo chr($n); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/0KB8L
function name:  (null)
number of ops:  17
compiled vars:  !0 = $n, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, '000041007500720075006d002000490054'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0KB8L%3A1%240'
          2        BIND_LEXICAL                                             ~3, !0
          3        ASSIGN                                                   !1, ~3
          4        INIT_DYNAMIC_CALL                                        !1
          5        SEND_VAL_EX                                              4
          6        SEND_VAL_EX                                              2
          7        DO_FCALL                                      0  $5      
          8      > FE_RESET_R                                       $6      $5, ->15
          9    > > FE_FETCH_R                                               $6, !0, ->15
         10    >   INIT_FCALL                                               'chr'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
         14      > JMP                                                      ->9
         15    >   FE_FREE                                                  $6
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F0KB8L%3A1%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
1 jumps found. (Code = 161) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
Branch analysis from position: 7
filename:       /in/0KB8L
function name:  {closure}
number of ops:  19
compiled vars:  !0 = $offset, !1 = $step, !2 = $n, !3 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        GENERATOR_CREATE                                         
          3        BIND_STATIC                                              !2
          4        STRLEN                                           ~4      !2
          5        ASSIGN                                                   !3, ~4
          6      > JMP                                                      ->16
          7    >   INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $6      
         12        CONCAT                                           ~7      '0x', $6
         13        YIELD                                                    ~7
         14        ADD                                              ~9      !1, 2
         15        ASSIGN_OP                                     1          !0, ~9
         16    >   IS_SMALLER                                               !0, !3
         17      > JMPNZ                                                    ~11, ->7
         18    > > GENERATOR_RETURN                                         

End of function %00%7Bclosure%7D%2Fin%2F0KB8L%3A1%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.06 ms | 1400 KiB | 17 Q