3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=9; $year=2014; $x=array(); if (array_key_exists('billing_type', $x)) { $out= $x['billing_type']; } else { $out= 'month'; } echo $out;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VEcbu
function name:  (null)
number of ops:  11
compiled vars:  !0 = $month, !1 = $year, !2 = $x, !3 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 9
    3     1        ASSIGN                                                   !1, 2014
    5     2        ASSIGN                                                   !2, <array>
    6     3        ARRAY_KEY_EXISTS                                         'billing_type', !2
          4      > JMPZ                                                     ~7, ->8
    7     5    >   FETCH_DIM_R                                      ~8      !2, 'billing_type'
          6        ASSIGN                                                   !3, ~8
          7      > JMP                                                      ->9
    9     8    >   ASSIGN                                                   !3, 'month'
   12     9    >   ECHO                                                     !3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.65 ms | 1393 KiB | 13 Q