3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _arte_cms_tracking_og_are_settings_null($settings) { if(is_array($settings)) { if (!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/MpXIM
function name:  (null)
number of ops:  9
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   ASSIGN                                                   !0, <array>
   30     1        INIT_FCALL                                               '_arte_cms_tracking_og_are_settings_null'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4      > JMPZ                                                     $2, ->7
   31     5    >   ECHO                                                     'EMPTY'
          6      > JMP                                                      ->8
   33     7    >   ECHO                                                     'NOT+EMPTY%21'
   34     8    > > RETURN                                                   1

Function _arte_cms_tracking_og_are_settings_null:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 32
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/MpXIM
function name:  _arte_cms_tracking_og_are_settings_null
number of ops:  34
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          !0
          2      > JMPZ                                                     ~3, ->24
    5     3    >   ISSET_ISEMPTY_CV                                 ~4      !0
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->24
    6     6    >   INIT_FCALL                                               'array_shift'
          7        SEND_REF                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    7    10        INIT_FCALL_BY_NAME                                       'is_multiArrayEmpty'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $8      
         13        BOOL_NOT                                         ~9      $8
         14      > JMPNZ_EX                                         ~9      ~9, ->20
         15    >   INIT_FCALL_BY_NAME                                       'is_multiArrayEmpty'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $10     
         18        BOOL_NOT                                         ~11     $10
         19        BOOL                                             ~9      ~11
         20    > > JMPZ                                                     ~9, ->23
    8    21    > > RETURN                                                   <false>
         22*       JMP                                                      ->24
   11    23    > > RETURN                                                   <true>
   18    24    >   INIT_FCALL                                               'trim'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $12     
         27        ASSIGN                                                   !2, $12
   20    28        ISSET_ISEMPTY_CV                                         !2
         29      > JMPZ                                                     ~14, ->32
   21    30    > > RETURN                                                   <true>
         31*       JMP                                                      ->33
   24    32    > > RETURN                                                   <false>
   26    33*     > RETURN                                                   null

End of function _arte_cms_tracking_og_are_settings_null

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.52 ms | 1403 KiB | 18 Q