3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nom = "doe"; $prenom = "john"; //echo $nom; //$nom = ucwords(strtolower($nom)); //echo $nom; $lknd = " "; if($lknd != NULL and $lknd.trim() != "") echo "OUI"; else echo "NON"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
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: 10
filename:       /in/d2BV8
function name:  (null)
number of ops:  15
compiled vars:  !0 = $nom, !1 = $prenom, !2 = $lknd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'doe'
    3     1        ASSIGN                                                   !1, 'john'
    9     2        ASSIGN                                                   !2, '++++++'
   10     3        IS_NOT_EQUAL                                     ~6      !2, null
          4      > JMPZ_EX                                          ~6      ~6, ->10
          5    >   INIT_FCALL                                               'trim'
          6        DO_ICALL                                         $7      
          7        CONCAT                                           ~8      !2, $7
          8        IS_NOT_EQUAL                                     ~9      ~8, ''
          9        BOOL                                             ~6      ~9
         10    > > JMPZ                                                     ~6, ->13
   11    11    >   ECHO                                                     'OUI'
         12      > JMP                                                      ->14
   13    13    >   ECHO                                                     'NON'
   14    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.1 ms | 1394 KiB | 15 Q