3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Avg. Monthly Searches (exact match only)' => '333', ]; echo gettype($array['Avg. Monthly Searches (exact match only)']); echo '<br>'; echo (int)$array['Avg. Monthly Searches (exact match only)'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JuPFc
function name:  (null)
number of ops:  9
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        FETCH_DIM_R                                      ~2      !0, 'Avg.+Monthly+Searches+%28exact+match+only%29'
          2        GET_TYPE                                         ~3      ~2
          3        ECHO                                                     ~3
    8     4        ECHO                                                     '%3Cbr%3E'
    9     5        FETCH_DIM_R                                      ~4      !0, 'Avg.+Monthly+Searches+%28exact+match+only%29'
          6        CAST                                          4  ~5      ~4
          7        ECHO                                                     ~5
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.76 ms | 1384 KiB | 13 Q