3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user['name'] = "Алексей"; if(strpos(urlencode($user['name']),"%C3") === 0) { $user['name'] = iconv("UTF-8","WINDOWS-1252",$user['name']); } var_dump($user);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 21
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/NGZhV
function name:  (null)
number of ops:  25
compiled vars:  !0 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'name'
          1        OP_DATA                                                  '%C3%90%C2%90%C3%90%C2%BB%C3%90%C2%B5%C3%90%C2%BA%C3%91%C2%81%C3%90%C2%B5%C3%90%C2%B9'
    4     2        INIT_FCALL                                               'strpos'
          3        INIT_FCALL                                               'urlencode'
          4        FETCH_DIM_R                                      ~2      !0, 'name'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAL                                                 '%25C3'
          9        DO_ICALL                                         $4      
         10        IS_IDENTICAL                                             $4, 0
         11      > JMPZ                                                     ~5, ->21
    5    12    >   INIT_FCALL_BY_NAME                                       'iconv'
         13        SEND_VAL_EX                                              'UTF-8'
         14        SEND_VAL_EX                                              'WINDOWS-1252'
         15        CHECK_FUNC_ARG                                           
         16        FETCH_DIM_FUNC_ARG                               $7      !0, 'name'
         17        SEND_FUNC_ARG                                            $7
         18        DO_FCALL                                      0  $8      
         19        ASSIGN_DIM                                               !0, 'name'
         20        OP_DATA                                                  $8
    8    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.76 ms | 1395 KiB | 19 Q