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) + $_REQUEST; var_dump($inputs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lCHnl
function name:  (null)
number of ops:  15
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        FETCH_R                      global              ~7      '_REQUEST'
          9        ADD                                              ~8      $6, ~7
         10        ASSIGN                                                   !1, ~8
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.18 ms | 1398 KiB | 17 Q