3v4l.org

run code in 300+ 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 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Branch analysis from position: 15
filename:       /in/iHFVU
function name:  (null)
number of ops:  17
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        INIT_FCALL                                               'trim'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        IS_EQUAL                                                 $2, ''
          6      > JMPZ                                                     ~3, ->9
    6     7    >   ECHO                                                     'Leeg'
          8      > JMP                                                      ->10
    8     9    >   ECHO                                                     'Gevuld%21'
   11    10    >   ECHO                                                     '%3Ch1%3Eempty%28%29%3C%2Fh1%3E'
   12    11        ISSET_ISEMPTY_CV                                         !0
         12      > JMPZ                                                     ~4, ->15
   13    13    >   ECHO                                                     'Leeg'
         14      > JMP                                                      ->16
   15    15    >   ECHO                                                     'Gevuld%21'
   17    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.35 ms | 1395 KiB | 15 Q