3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 'On'); error_reporting(E_ALL); $a = false; echo '$a["foo"] is ', $a['foo'] != null ? '' : 'not ', 'set';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZihZQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 'On'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 32767
          6        DO_ICALL                                                 
    5     7        ASSIGN                                                   !0, <false>
    6     8        ECHO                                                     '%24a%5B%22foo%22%5D+is+'
          9        FETCH_DIM_R                                      ~4      !0, 'foo'
         10        IS_NOT_EQUAL                                             ~4, null
         11      > JMPZ                                                     ~5, ->14
         12    >   QM_ASSIGN                                        ~6      ''
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~6      'not+'
         15    >   ECHO                                                     ~6
         16        ECHO                                                     'set'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
273.39 ms | 1011 KiB | 15 Q