3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "ążźćńłśąęó"; foreach (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 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/jSlgV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $data, !1 = $val, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C4%85%C5%BC%C5%BA%C4%87%C5%84%C5%82%C5%9B%C4%85%C4%99%C3%B3'
    4     1        INIT_FCALL                                               'count_chars'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $4      
          5      > FE_RESET_R                                       $5      $4, ->18
          6    > > FE_FETCH_R                                       ~6      $5, !1, ->18
          7    >   ASSIGN                                                   !2, ~6
    5     8        ROPE_INIT                                     3  ~9      'There+were+'
          9        ROPE_ADD                                      1  ~9      ~9, !1
         10        ROPE_END                                      2  ~8      ~9, '+instance%28s%29+of+%22'
         11        ECHO                                                     ~8
         12        INIT_FCALL                                               'chr'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $11     
         15        ECHO                                                     $11
         16        ECHO                                                     '%22+in+the+string.%0A'
    4    17      > JMP                                                      ->6
         18    >   FE_FREE                                                  $5
    6    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.42 ms | 1386 KiB | 17 Q