3v4l.org

run code in 500+ PHP versions simultaneously
<?php $searchdata = array("id" => 1, "name" => "", "type" => "foo"); $conditions = array('Question.id' => $searchdata['id'], 'Question.name' => $searchdata['name'], "Question.type" => $searchdata['type']); $conditions = array_filter($conditions); print_r($conditions);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5eoAP
function name:  (null)
number of ops:  16
compiled vars:  !0 = $searchdata, !1 = $conditions
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        FETCH_DIM_R                                          ~3      !0, 'id'
          2        INIT_ARRAY                                           ~4      ~3, 'Question.id'
          3        FETCH_DIM_R                                          ~5      !0, 'name'
          4        ADD_ARRAY_ELEMENT                                    ~4      ~5, 'Question.name'
          5        FETCH_DIM_R                                          ~6      !0, 'type'
          6        ADD_ARRAY_ELEMENT                                    ~4      ~6, 'Question.type'
          7        ASSIGN                                                       !1, ~4
    4     8        INIT_FCALL                                                   'array_filter'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                             $8      
         11        ASSIGN                                                       !1, $8
    6    12        INIT_FCALL                                                   'print_r'
         13        SEND_VAR                                                     !1
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.92 ms | 2651 KiB | 15 Q