3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); $missingArgs = []; $args = ['username' => 'name', 'password'=>'password']; $username = $args['username'] ?? $missingArgs[] = 'username'; $password = $args['password'] ?? $missingArgs[] = 'password'; if ($missingArgs) { echo "true"; } else { echo "false"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hkrk5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $missingArgs, !1 = $args, !2 = $username, !3 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        FETCH_DIM_IS                                     ~6      !1, 'username'
          3        COALESCE                                         ~7      ~6
          4        ASSIGN_DIM                                       ~8      !0
          5        OP_DATA                                                  'username'
          6        QM_ASSIGN                                        ~7      ~8
          7        ASSIGN                                                   !2, ~7
    7     8        FETCH_DIM_IS                                     ~10     !1, 'password'
          9        COALESCE                                         ~11     ~10
         10        ASSIGN_DIM                                       ~12     !0
         11        OP_DATA                                                  'password'
         12        QM_ASSIGN                                        ~11     ~12
         13        ASSIGN                                                   !3, ~11
    9    14      > JMPZ                                                     !0, ->17
   10    15    >   ECHO                                                     'true'
    9    16      > JMP                                                      ->18
   12    17    >   ECHO                                                     'false'
   13    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.35 ms | 1002 KiB | 13 Q