3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array('one'=>1, 'two'=>2); array_key_exist('one',$test) ? $output = 'cool' : $output = 'not'; echo $output;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rbgRn
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, <array>
    2     1        INIT_FCALL_BY_NAME                                       'array_key_exist'
          2        SEND_VAL_EX                                              'one'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $3      
          5      > JMPZ                                                     $3, ->9
          6    >   ASSIGN                                           ~4      !1, 'cool'
          7        QM_ASSIGN                                        ~5      ~4
          8      > JMP                                                      ->11
          9    >   ASSIGN                                           ~6      !1, 'not'
         10        QM_ASSIGN                                        ~5      ~6
         11    >   FREE                                                     ~5
    3    12        ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.6 ms | 1393 KiB | 13 Q