3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ch = "\xc2\x9d"; foreach (str_split($ch) as $c) { echo sprintf("0x%02X", $c) . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/FjUb7
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ch, !1 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%C2%9D'
    4     1        INIT_FCALL                                                   'str_split'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $3      
          4      > FE_RESET_R                                           $4      $3, ->13
          5    > > FE_FETCH_R                                                   $4, !1, ->13
    5     6    >   INIT_FCALL                                                   'sprintf'
          7        SEND_VAL                                                     '0x%2502X'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                             $5      
         10        CONCAT                                               ~6      $5, '%0A'
         11        ECHO                                                         ~6
    4    12      > JMP                                                          ->5
         13    >   FE_FREE                                                      $4
    6    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.66 ms | 478 KiB | 9 Q