3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "ejIjSS3Fh5GSYG3hALUII53AeIR55ej3LeeAeSjReS5jRjeeG3GL5hLShhFS5h5GUAheRISFSO5IOIIAGFGGAS3eh5h5FjLe33Ueje3h35jIjjhj5L5j53A3"; foreach (asort(count_chars($data, 1)) as $i => $val) { echo "There were $val instance(s) of \"" , chr($i) , "\" in the string.\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/5XhQs
function name:  (null)
number of ops:  23
compiled vars:  !0 = $data, !1 = $val, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ejIjSS3Fh5GSYG3hALUII53AeIR55ej3LeeAeSjReS5jRjeeG3GL5hLShhFS5h5GUAheRISFSO5IOIIAGFGGAS3eh5h5FjLe33Ueje3h35jIjjhj5L5j53A3'
    4     1        INIT_FCALL                                               'asort'
          2        INIT_FCALL                                               'count_chars'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $4      
          6        SEND_VAR_NO_REF                               0          $4
          7        DO_ICALL                                         $5      
          8      > FE_RESET_R                                       $6      $5, ->21
          9    > > FE_FETCH_R                                       ~7      $6, !1, ->21
         10    >   ASSIGN                                                   !2, ~7
    5    11        ROPE_INIT                                     3  ~10     'There+were+'
         12        ROPE_ADD                                      1  ~10     ~10, !1
         13        ROPE_END                                      2  ~9      ~10, '+instance%28s%29+of+%22'
         14        ECHO                                                     ~9
         15        INIT_FCALL                                               'chr'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $12     
         18        ECHO                                                     $12
         19        ECHO                                                     '%22+in+the+string.%0A'
    4    20      > JMP                                                      ->9
         21    >   FE_FREE                                                  $6
    7    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.22 ms | 1400 KiB | 19 Q