3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("blue", "red", "green", "blue", "blue"); echo count(array_keys($array, "blue")); print_r(array_keys($array, "blue")); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u76rc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'blue'
          4        DO_ICALL                                         $2      
          5        COUNT                                            ~3      $2
          6        ECHO                                                     ~3
    4     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'array_keys'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'blue'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    5    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169 ms | 1394 KiB | 17 Q