3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hidden = ['email', 'soclial', 'phone']; $inDb = ['email']; array_push($inDb, array_diff($hidden, $inDb)); print_r($inDb);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4EveG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $hidden, !1 = $inDb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_push'
          3        SEND_REF                                                 !1
          4        INIT_FCALL                                               'array_diff'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.96 ms | 1394 KiB | 19 Q