3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nom = "doe"; $prenom = "john"; //echo $nom; //$nom = ucwords(strtolower($nom)); //echo $nom; $lknd = " A "; if($lknd != NULL and trim($lknd) != "") echo "OUI"; else echo "NON"; echo "<".$lknd.">\n"; echo "<".trim($lknd).">"; ?>
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/OEtju
function name:  (null)
number of ops:  24
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, '++A++++'
   10     3        IS_NOT_EQUAL                                     ~6      !2, null
          4      > JMPZ_EX                                          ~6      ~6, ->10
          5    >   INIT_FCALL                                               'trim'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $7      
          8        IS_NOT_EQUAL                                     ~8      $7, ''
          9        BOOL                                             ~6      ~8
         10    > > JMPZ                                                     ~6, ->13
   11    11    >   ECHO                                                     'OUI'
         12      > JMP                                                      ->14
   13    13    >   ECHO                                                     'NON'
   15    14    >   CONCAT                                           ~9      '%3C', !2
         15        CONCAT                                           ~10     ~9, '%3E%0A'
         16        ECHO                                                     ~10
   16    17        INIT_FCALL                                               'trim'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $11     
         20        CONCAT                                           ~12     '%3C', $11
         21        CONCAT                                           ~13     ~12, '%3E'
         22        ECHO                                                     ~13
   17    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.4 ms | 1387 KiB | 15 Q