3v4l.org

run code in 300+ PHP versions simultaneously
<?php $withEmpty = true; $options = array( 0 => array( 'label' => 'Footer Navigation', 'value' => 'footer.links.one' ), 1 => array( 'label' => 'MainNavigation', 'value' => 'main.links.navigation' ), 2 => array( 'label' => 'CMS Navigation', 'value' => 'cms.links.navigation' ), ); if ($withEmpty) { array_unshift($options, array( 'value'=>'', 'label' => $this->__('-- Please Select --') )); } print_r($options);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/ujUSH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $withEmpty, !1 = $options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                                   !1, <array>
   18     2      > JMPZ                                                     !0, ->13
   19     3    >   INIT_FCALL                                               'array_unshift'
          4        SEND_REF                                                 !1
   20     5        INIT_ARRAY                                       ~4      '', 'value'
   21     6        FETCH_THIS                                       $5      
          7        INIT_METHOD_CALL                                         $5, '__'
          8        SEND_VAL_EX                                              '--+Please+Select+--'
          9        DO_FCALL                                      0  $6      
         10        ADD_ARRAY_ELEMENT                                ~4      $6, 'label'
         11        SEND_VAL                                                 ~4
         12        DO_ICALL                                                 
   25    13    >   INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
221.94 ms | 1394 KiB | 17 Q