3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "COenrdmr"; $str[0] = chr(ord($str[0]) + hexdec('6b') - hexdec('42')); var_dump($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NDRGB
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'COenrdmr'
    4     1        INIT_FCALL                                               'chr'
          2        INIT_FCALL                                               'ord'
          3        FETCH_DIM_R                                      ~3      !0, 0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        INIT_FCALL                                               'hexdec'
          7        SEND_VAL                                                 '6b'
          8        DO_ICALL                                         $5      
          9        ADD                                              ~6      $4, $5
         10        INIT_FCALL                                               'hexdec'
         11        SEND_VAL                                                 '42'
         12        DO_ICALL                                         $7      
         13        SUB                                              ~8      ~6, $7
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                         $9      
         16        ASSIGN_DIM                                               !0, 0
         17        OP_DATA                                                  $9
    7    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.1 ms | 1395 KiB | 21 Q