3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iptcData = "Photoshop 3.0\08BIM\4\4\0\0\0\0\0\x11\x1c\x02\x19\x00\x04\xC3\xC3\xC3\xB8" . "\x1c\x01\x5A\x00\x03\x1B\x25\x47"; $res = iptcparse( $iptcData ); $keywords = $res['2#025']; foreach ( $keywords as $val ) { var_dump( iconv( "UTF-8", "UTF-8//IGNORE", $val ) ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/sLcu4
function name:  (null)
number of ops:  20
compiled vars:  !0 = $iptcData, !1 = $res, !2 = $keywords, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Photoshop+3.0%008BIM%04%04%00%00%00%00%00%11%1C%02%19%00%04%C3%C3%C3%B8%1C%01Z%00%03%1B%25G'
    5     1        INIT_FCALL                                               'iptcparse'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5        FETCH_DIM_R                                      ~7      !1, '2%23025'
          6        ASSIGN                                                   !2, ~7
    7     7      > FE_RESET_R                                       $9      !2, ->18
          8    > > FE_FETCH_R                                               $9, !3, ->18
    8     9    >   INIT_FCALL                                               'var_dump'
         10        INIT_FCALL_BY_NAME                                       'iconv'
         11        SEND_VAL_EX                                              'UTF-8'
         12        SEND_VAL_EX                                              'UTF-8%2F%2FIGNORE'
         13        SEND_VAR_EX                                              !3
         14        DO_FCALL                                      0  $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                                 
    7    17      > JMP                                                      ->8
         18    >   FE_FREE                                                  $9
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.66 ms | 1395 KiB | 17 Q