3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.01 ms | 1396 KiB | 21 Q