3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "ejIjSS3Fh5GSYG3hALUII53AeIR55ej3LeeAeSjReS5jRjeeG3GL5hLShhFS5h5GUAheRISFSO5IOIIAGFGGAS3eh5h5FjLe33Ueje3h35jIjjhj5L5j53A3"; $a=(count_chars($data, 1)); print_r($a); foreach ($a as $i => $val) { echo "There were $val instance(s) of \"" , ($i) , "\" in the string.\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/pOa6L
function name:  (null)
number of ops:  21
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
    6     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    8     9      > FE_RESET_R                                       $8      !1, ->19
         10    > > FE_FETCH_R                                       ~9      $8, !2, ->19
         11    >   ASSIGN                                                   !3, ~9
    9    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        ECHO                                                     !3
         17        ECHO                                                     '%22+in+the+string.%0A'
    8    18      > JMP                                                      ->10
         19    >   FE_FREE                                                  $8
   11    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.05 ms | 1395 KiB | 17 Q