3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = "Stefane ides u kurac stefane pusis kurac samo kurac da da da!"; $split = explode(" ", strtolower($word)); $map = array(); foreach ($split as $v) { if (isset($map[$v])) { $map[$v]++; } else { $map[$v] = 1; } } asort($map); print_r($map);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/LbAZJ
function name:  (null)
number of ops:  28
compiled vars:  !0 = $word, !1 = $split, !2 = $map, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Stefane+ides+u+kurac+stefane+pusis+kurac+samo+kurac+da+da+da%21'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        INIT_FCALL                                               'strtolower'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    7     9        ASSIGN                                                   !2, <array>
    9    10      > FE_RESET_R                                       $9      !1, ->20
         11    > > FE_FETCH_R                                               $9, !3, ->20
   10    12    >   ISSET_ISEMPTY_DIM_OBJ                         0          !2, !3
         13      > JMPZ                                                     ~10, ->17
   11    14    >   FETCH_DIM_RW                                     $11     !2, !3
         15        PRE_INC                                                  $11
         16      > JMP                                                      ->19
   13    17    >   ASSIGN_DIM                                               !2, !3
         18        OP_DATA                                                  1
    9    19    > > JMP                                                      ->11
         20    >   FE_FREE                                                  $9
   16    21        INIT_FCALL                                               'asort'
         22        SEND_REF                                                 !2
         23        DO_ICALL                                                 
   17    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.6 ms | 1396 KiB | 21 Q