3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_REQUEST = array("first_name" => "John", "foo" => "foo"); $default = array("first_name" => ""); $inputs = array_intersect_key($_REQUEST, $default) + $default; var_dump($inputs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jiFfG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $default, !1 = $inputs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $2      '_REQUEST'
          1        ASSIGN                                                   $2, <array>
    3     2        ASSIGN                                                   !0, <array>
    4     3        INIT_FCALL                                               'array_intersect_key'
          4        FETCH_R                      global              ~5      '_REQUEST'
          5        SEND_VAL                                                 ~5
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ADD                                              ~7      $6, !0
          9        ASSIGN                                                   !1, ~7
    5    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.73 ms | 1394 KiB | 17 Q