3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.31 ms | 1395 KiB | 19 Q