3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = array('email' => 'abc', 'phone' => '01234'); $possible = array('email', 'phone', 'foo', 'bar', 'baz'); $existing = array_intersect($possible, array_keys($_POST)); var_dump($existing);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J0D30
function name:  (null)
number of ops:  16
compiled vars:  !0 = $possible, !1 = $existing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $2      '_POST'
          1        ASSIGN                                                   $2, <array>
    4     2        ASSIGN                                                   !0, <array>
    5     3        INIT_FCALL                                               'array_intersect'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'array_keys'
          6        FETCH_R                      global              ~5      '_POST'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.26 ms | 1394 KiB | 19 Q