3v4l.org

run code in 500+ PHP versions simultaneously
<?php $var = '0'; echo "<h1>trim() en vergelijking</h1>"; if(trim($var) =="") { echo "Leeg"; } else { echo "Gevuld!"; } echo "<h1>empty()</h1>"; if(empty($var)) { echo "Leeg"; } else { echo "Gevuld!"; } ?>
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
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
Branch analysis from position: 13
filename:       /in/nu0qX
function name:  (null)
number of ops:  15
compiled vars:  !0 = $var
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '0'
    4     1        ECHO                                                         '%3Ch1%3Etrim%28%29+en+vergelijking%3C%2Fh1%3E'
    5     2        FRAMELESS_ICALL_1                trim                ~2      !0
          3        IS_EQUAL                                                     ~2, ''
          4      > JMPZ                                                         ~3, ->7
    6     5    >   ECHO                                                         'Leeg'
    5     6      > JMP                                                          ->8
    8     7    >   ECHO                                                         'Gevuld%21'
   11     8    >   ECHO                                                         '%3Ch1%3Eempty%28%29%3C%2Fh1%3E'
   12     9        ISSET_ISEMPTY_CV                                             !0
         10      > JMPZ                                                         ~4, ->13
   13    11    >   ECHO                                                         'Leeg'
   12    12      > JMP                                                          ->14
   15    13    >   ECHO                                                         'Gevuld%21'
   17    14    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.15 ms | 2781 KiB | 13 Q