3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vowels = array('a', 'e', 'i', 'o', 'u'); $string = "This string contains vowels, and will output the number of each it contains."; return count_array($vowels, $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5H8vX
function name:  (null)
number of ops:  8
compiled vars:  !0 = $vowels, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 'This+string+contains+vowels%2C+and+will+output+the+number+of+each+it+contains.'
    7     2        INIT_FCALL_BY_NAME                                       'count_array'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $4      
          6      > RETURN                                                   $4
          7*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.02 ms | 1397 KiB | 13 Q