3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.9 ms | 1385 KiB | 17 Q