3v4l.org

run code in 500+ PHP versions simultaneously
<?php $words = rtrim('php, codes, php, script, php, chat.',"."); $exploded = explode(", ",$words); $arrCount = array_count_values($exploded); var_dump($arrCount);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BNXjf
function name:  (null)
number of ops:  18
compiled vars:  !0 = $words, !1 = $exploded, !2 = $arrCount
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'rtrim'
          1        SEND_VAL                                                     'php%2C+codes%2C+php%2C+script%2C+php%2C+chat.'
          2        SEND_VAL                                                     '.'
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !0, $3
    4     5        INIT_FCALL                                                   'explode'
          6        SEND_VAL                                                     '%2C+'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $5      
          9        ASSIGN                                                       !1, $5
    5    10        INIT_FCALL                                                   'array_count_values'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                             $7      
         13        ASSIGN                                                       !2, $7
    6    14        INIT_FCALL                                                   'var_dump'
         15        SEND_VAR                                                     !2
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.83 ms | 2173 KiB | 17 Q