3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "AARON'S INC                  "; /*$array = str_split($string); foreach($array as $char) { var_dump($char); var_dump(ord($char)); printf("\n\n"); } */ $converted = rtrim(iconv("UTF-8", "ASCII", $string)); var_dump($converted);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZTJmr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $converted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'AARON%27S+INC%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0'
   12     1        INIT_FCALL                                               'rtrim'
          2        INIT_FCALL_BY_NAME                                       'iconv'
          3        SEND_VAL_EX                                              'UTF-8'
          4        SEND_VAL_EX                                              'ASCII'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
   13    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.97 ms | 1394 KiB | 17 Q