3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user= array('email' => 1, ); $requiredAttributes = array('email', 'id', 'first_name', 'last_name'); if ($missing = array_diff_key(array_flip($requiredAttributes), $user)) { $message = sprintf( 'Facebook API Error: User does not have required attributes. Missing: "%s"', implode(", ", array_keys($missing)) ); } var_dump($message);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 23
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/eT0pL
function name:  (null)
number of ops:  27
compiled vars:  !0 = $user, !1 = $requiredAttributes, !2 = $missing, !3 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'array_diff_key'
          3        INIT_FCALL                                               'array_flip'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9        ASSIGN                                           ~8      !2, $7
         10      > JMPZ                                                     ~8, ->23
    9    11    >   INIT_FCALL                                               'sprintf'
   10    12        SEND_VAL                                                 'Facebook+API+Error%3A+User+does+not+have+required+attributes.+Missing%3A+%22%25s%22'
   11    13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '%2C+'
         15        INIT_FCALL                                               'array_keys'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                         $11     
    9    22        ASSIGN                                                   !3, $11
   14    23    >   INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.15 ms | 1395 KiB | 25 Q