3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, "tr_TR"); $str="i"; $res=strtoupper($str); var_dump([ "str"=>$str, "str_hex"=>bin2hex($str), "res"=>$res, "res_hex"=>bin2hex($res), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GD91W
function name:  (null)
number of ops:  23
compiled vars:  !0 = $str, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 6
          2        SEND_VAL                                                 'tr_TR'
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, 'i'
    4     5        INIT_FCALL                                               'strtoupper'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    5     9        INIT_FCALL                                               'var_dump'
    6    10        INIT_ARRAY                                       ~6      !0, 'str'
    7    11        INIT_FCALL                                               'bin2hex'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        ADD_ARRAY_ELEMENT                                ~6      $7, 'str_hex'
    8    15        ADD_ARRAY_ELEMENT                                ~6      !1, 'res'
    9    16        INIT_FCALL                                               'bin2hex'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $8      
         19        ADD_ARRAY_ELEMENT                                ~6      $8, 'res_hex'
         20        SEND_VAL                                                 ~6
    5    21        DO_ICALL                                                 
   10    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.3 ms | 1000 KiB | 17 Q