3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _arte_cms_tracking_og_are_settings_null($settings) { if(is_array($settings) && !empty($settings)){ $current_value = array_shift($settings); if(!is_multiArrayEmpty($current_value) || !is_multiArrayEmpty($settings)){ return FALSE; } else { return TRUE; } } // If we reached this point, the variable is not an array anymore. Trim it // and test if it is empty or not: $current_trimmed_value = trim($settings); if(empty($current_trimmed_value)){ return TRUE; } else { return FALSE; } } $t = array(); if (_arte_cms_tracking_og_are_settings_null($t)) { echo "EMPTY"; }else { echo "NOT EMPTY!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4YKd0
function name:  (null)
number of ops:  9
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   ASSIGN                                                   !0, <array>
   28     1        INIT_FCALL                                               '_arte_cms_tracking_og_are_settings_null'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4      > JMPZ                                                     $2, ->7
   29     5    >   ECHO                                                     'EMPTY'
          6      > JMP                                                      ->8
   31     7    >   ECHO                                                     'NOT+EMPTY%21'
   32     8    > > RETURN                                                   1

Function _arte_cms_tracking_og_are_settings_null:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 25
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/4YKd0
function name:  _arte_cms_tracking_og_are_settings_null
number of ops:  35
compiled vars:  !0 = $settings, !1 = $current_value, !2 = $current_trimmed_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        TYPE_CHECK                                  128  ~3      !0
          2      > JMPZ_EX                                          ~3      ~3, ->6
          3    >   ISSET_ISEMPTY_CV                                 ~4      !0
          4        BOOL_NOT                                         ~5      ~4
          5        BOOL                                             ~3      ~5
          6    > > JMPZ                                                     ~3, ->25
    5     7    >   INIT_FCALL                                               'array_shift'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    6    11        INIT_FCALL_BY_NAME                                       'is_multiArrayEmpty'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $8      
         14        BOOL_NOT                                         ~9      $8
         15      > JMPNZ_EX                                         ~9      ~9, ->21
         16    >   INIT_FCALL_BY_NAME                                       'is_multiArrayEmpty'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0  $10     
         19        BOOL_NOT                                         ~11     $10
         20        BOOL                                             ~9      ~11
         21    > > JMPZ                                                     ~9, ->24
    7    22    > > RETURN                                                   <false>
         23*       JMP                                                      ->25
   10    24    > > RETURN                                                   <true>
   16    25    >   INIT_FCALL                                               'trim'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $12     
         28        ASSIGN                                                   !2, $12
   18    29        ISSET_ISEMPTY_CV                                         !2
         30      > JMPZ                                                     ~14, ->33
   19    31    > > RETURN                                                   <true>
         32*       JMP                                                      ->34
   22    33    > > RETURN                                                   <false>
   24    34*     > RETURN                                                   null

End of function _arte_cms_tracking_og_are_settings_null

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.08 ms | 1403 KiB | 18 Q