3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Mary', 'Mary had a little', 'a lamb', 'Mary mary mary', 'lady' ]; var_export( array_count_values( explode(' ', strtolower( implode(' ', $array) ) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Sdut
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'var_export'
   11     2        INIT_FCALL                                               'array_count_values'
   12     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '+'
   13     5        INIT_FCALL                                               'strtolower'
   14     6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '+'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
   13    11        DO_ICALL                                         $3      
   14    12        SEND_VAR                                                 $3
   12    13        DO_ICALL                                         $4      
   14    14        SEND_VAR                                                 $4
   11    15        DO_ICALL                                         $5      
   14    16        SEND_VAR                                                 $5
   10    17        DO_ICALL                                                 
   18    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
271.3 ms | 1014 KiB | 18 Q