3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = ' '; if(trim($var) =="") { echo "Leeg"; } else { echo "Gevuld!"; } $var = '0'; if(empty($var)) { echo "Leeg"; } else { echo "Gevuld!"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/4TGaj
function name:  (null)
number of ops:  16
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '+'
    3     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        IS_EQUAL                                                 $2, ''
          5      > JMPZ                                                     ~3, ->8
    4     6    >   ECHO                                                     'Leeg'
          7      > JMP                                                      ->9
    6     8    >   ECHO                                                     'Gevuld%21'
    9     9    >   ASSIGN                                                   !0, '0'
   10    10        ISSET_ISEMPTY_CV                                         !0
         11      > JMPZ                                                     ~5, ->14
   11    12    >   ECHO                                                     'Leeg'
         13      > JMP                                                      ->15
   13    14    >   ECHO                                                     'Gevuld%21'
   15    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1395 KiB | 15 Q