3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = (array) json_decode('{"1":"1","2":"1","3":"1","4":"1","12":"12"}'); var_dump($array); var_dump(array_key_exists("12", $array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m6tA7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%221%22%3A%221%22%2C%222%22%3A%221%22%2C%223%22%3A%221%22%2C%224%22%3A%221%22%2C%2212%22%3A%2212%22%7D'
          2        DO_ICALL                                         $1      
          3        CAST                                          7  ~2      $1
          4        ASSIGN                                                   !0, ~2
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        ARRAY_KEY_EXISTS                                 ~5      '12', !0
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.33 ms | 1385 KiB | 17 Q