3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = ' Hello 20.04.2016 🚩 my incredibleness face😘face is XYZ '; $words = preg_split('/\s+/', $text, 0, PREG_SPLIT_NO_EMPTY); $wordsLength = array_map('mb_strlen', $words); $lengthCounts = array_count_values($wordsLength); $defaultCounts = array_fill_keys(range(1,10), 0); $filteredCounts = array_intersect_key($lengthCounts, $defaultCounts); $gaplessCounts = array_replace($defaultCounts, $filteredCounts); var_export($words); echo "\n"; var_export($wordsLength); echo "\n"; var_export($lengthCounts); echo "\n"; var_export($defaultCounts); echo "\n"; var_export($filteredCounts); echo "\n"; var_export($gaplessCounts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BnNRS
function name:  (null)
number of ops:  60
compiled vars:  !0 = $text, !1 = $words, !2 = $wordsLength, !3 = $lengthCounts, !4 = $defaultCounts, !5 = $filteredCounts, !6 = $gaplessCounts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '++++Hello+20.04.2016++%F0%9F%9A%A9+my+++incredibleness+face%F0%9F%98%98face++is+XYZ++++'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5Cs%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !1, $8
    7     8        INIT_FCALL                                               'array_map'
          9        SEND_VAL                                                 'mb_strlen'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !2, $10
    9    13        INIT_FCALL                                               'array_count_values'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !3, $12
   11    17        INIT_FCALL                                               'array_fill_keys'
         18        INIT_FCALL                                               'range'
         19        SEND_VAL                                                 1
         20        SEND_VAL                                                 10
         21        DO_ICALL                                         $14     
         22        SEND_VAR                                                 $14
         23        SEND_VAL                                                 0
         24        DO_ICALL                                         $15     
         25        ASSIGN                                                   !4, $15
   13    26        INIT_FCALL                                               'array_intersect_key'
         27        SEND_VAR                                                 !3
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                         $17     
         30        ASSIGN                                                   !5, $17
   15    31        INIT_FCALL                                               'array_replace'
         32        SEND_VAR                                                 !4
         33        SEND_VAR                                                 !5
         34        DO_ICALL                                         $19     
         35        ASSIGN                                                   !6, $19
   17    36        INIT_FCALL                                               'var_export'
         37        SEND_VAR                                                 !1
         38        DO_ICALL                                                 
   18    39        ECHO                                                     '%0A'
   19    40        INIT_FCALL                                               'var_export'
         41        SEND_VAR                                                 !2
         42        DO_ICALL                                                 
   20    43        ECHO                                                     '%0A'
   21    44        INIT_FCALL                                               'var_export'
         45        SEND_VAR                                                 !3
         46        DO_ICALL                                                 
   22    47        ECHO                                                     '%0A'
   23    48        INIT_FCALL                                               'var_export'
         49        SEND_VAR                                                 !4
         50        DO_ICALL                                                 
   24    51        ECHO                                                     '%0A'
   25    52        INIT_FCALL                                               'var_export'
         53        SEND_VAR                                                 !5
         54        DO_ICALL                                                 
   26    55        ECHO                                                     '%0A'
   27    56        INIT_FCALL                                               'var_export'
         57        SEND_VAR                                                 !6
         58        DO_ICALL                                                 
         59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.45 ms | 1400 KiB | 29 Q