3v4l.org

run code in 500+ PHP versions simultaneously
<?php function extraEmpty($var) { return (empty($var) || $var === "0.00" || $var === ".0" || $var === " "); } $var = ''; var_dump(extraEmpty($var)); $var = 0; var_dump(extraEmpty($var)); $var = 0.0; var_dump(extraEmpty($var)); $var = FALSE; var_dump(extraEmpty($var)); $var = NULL; var_dump(extraEmpty($var)); $var = 0.00; var_dump(extraEmpty($var)); $var = .0; var_dump(extraEmpty($var)); $var = "0.00"; var_dump(extraEmpty($var)); $var = ".0"; var_dump(extraEmpty($var)); $var = " "; var_dump(extraEmpty($var));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ri8c3
function name:  (null)
number of ops:  71
compiled vars:  !0 = $var
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                       !0, ''
    8     1        INIT_FCALL                                                   'var_dump'
          2        INIT_FCALL                                                   'extraempty'
          3        SEND_VAR                                                     !0
          4        DO_FCALL                                          0  $2      
          5        SEND_VAR                                                     $2
          6        DO_ICALL                                                     
    9     7        ASSIGN                                                       !0, 0
   10     8        INIT_FCALL                                                   'var_dump'
          9        INIT_FCALL                                                   'extraempty'
         10        SEND_VAR                                                     !0
         11        DO_FCALL                                          0  $5      
         12        SEND_VAR                                                     $5
         13        DO_ICALL                                                     
   11    14        ASSIGN                                                       !0, 0
   12    15        INIT_FCALL                                                   'var_dump'
         16        INIT_FCALL                                                   'extraempty'
         17        SEND_VAR                                                     !0
         18        DO_FCALL                                          0  $8      
         19        SEND_VAR                                                     $8
         20        DO_ICALL                                                     
   13    21        ASSIGN                                                       !0, <false>
   14    22        INIT_FCALL                                                   'var_dump'
         23        INIT_FCALL                                                   'extraempty'
         24        SEND_VAR                                                     !0
         25        DO_FCALL                                          0  $11     
         26        SEND_VAR                                                     $11
         27        DO_ICALL                                                     
   15    28        ASSIGN                                                       !0, null
   16    29        INIT_FCALL                                                   'var_dump'
         30        INIT_FCALL                                                   'extraempty'
         31        SEND_VAR                                                     !0
         32        DO_FCALL                                          0  $14     
         33        SEND_VAR                                                     $14
         34        DO_ICALL                                                     
   17    35        ASSIGN                                                       !0, 0
   18    36        INIT_FCALL                                                   'var_dump'
         37        INIT_FCALL                                                   'extraempty'
         38        SEND_VAR                                                     !0
         39        DO_FCALL                                          0  $17     
         40        SEND_VAR                                                     $17
         41        DO_ICALL                                                     
   19    42        ASSIGN                                                       !0, 0
   20    43        INIT_FCALL                                                   'var_dump'
         44        INIT_FCALL                                                   'extraempty'
         45        SEND_VAR                                                     !0
         46        DO_FCALL                                          0  $20     
         47        SEND_VAR                                                     $20
         48        DO_ICALL                                                     
   22    49        ASSIGN                                                       !0, '0.00'
   23    50        INIT_FCALL                                                   'var_dump'
         51        INIT_FCALL                                                   'extraempty'
         52        SEND_VAR                                                     !0
         53        DO_FCALL                                          0  $23     
         54        SEND_VAR                                                     $23
         55        DO_ICALL                                                     
   24    56        ASSIGN                                                       !0, '.0'
   25    57        INIT_FCALL                                                   'var_dump'
         58        INIT_FCALL                                                   'extraempty'
         59        SEND_VAR                                                     !0
         60        DO_FCALL                                          0  $26     
         61        SEND_VAR                                                     $26
         62        DO_ICALL                                                     
   26    63        ASSIGN                                                       !0, '+'
   27    64        INIT_FCALL                                                   'var_dump'
         65        INIT_FCALL                                                   'extraempty'
         66        SEND_VAR                                                     !0
         67        DO_FCALL                                          0  $29     
         68        SEND_VAR                                                     $29
         69        DO_ICALL                                                     
         70      > RETURN                                                       1

Function extraempty:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 8
Branch analysis from position: 5
filename:       /in/Ri8c3
function name:  extraEmpty
number of ops:  13
compiled vars:  !0 = $var
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
    4     1        ISSET_ISEMPTY_CV                                     ~1      !0
          2      > JMPNZ_EX                                             ~1      ~1, ->5
          3    >   IS_IDENTICAL                                         ~2      !0, '0.00'
          4        BOOL                                                 ~1      ~2
          5    > > JMPNZ_EX                                             ~1      ~1, ->8
          6    >   IS_IDENTICAL                                         ~3      !0, '.0'
          7        BOOL                                                 ~1      ~3
          8    > > JMPNZ_EX                                             ~1      ~1, ->11
          9    >   IS_IDENTICAL                                         ~4      !0, '+'
         10        BOOL                                                 ~1      ~4
         11    > > RETURN                                                       ~1
    5    12*     > RETURN                                                       null

End of function extraempty

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.28 ms | 1909 KiB | 24 Q