3v4l.org

run code in 300+ PHP versions simultaneously
<?php $advanced_settings = []; echo (bool) $advanced_settings['consent_mode'] ?? TRUE; echo (bool) ($advanced_settings['consent_mode'] ?? TRUE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b9Rt5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $advanced_settings
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~2      !0, 'consent_mode'
          2        BOOL                                             ~3      ~2
          3        COALESCE                                         ~4      ~3
          4        QM_ASSIGN                                        ~4      <true>
          5        ECHO                                                     ~4
    7     6        FETCH_DIM_IS                                     ~5      !0, 'consent_mode'
          7        COALESCE                                         ~6      ~5
          8        QM_ASSIGN                                        ~6      <true>
          9        BOOL                                             ~7      ~6
         10        ECHO                                                     ~7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.46 ms | 1428 KiB | 13 Q