3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Mr N/A N/A'; if(strpos(trim($string),'N/A') !== false) { return 'To Home'; } else { return $string ? 'Hi ' . $string : $string; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/slZPv
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Mr+N%2FA+N%2FA'
    5     1        INIT_FCALL                                               'strpos'
          2        INIT_FCALL                                               'trim'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        SEND_VAL                                                 'N%2FA'
          7        DO_ICALL                                         $3      
          8        TYPE_CHECK                                  1018          $3
          9      > JMPZ                                                     ~4, ->12
    7    10    > > RETURN                                                   'To+Home'
         11*       JMP                                                      ->18
   11    12    > > JMPZ                                                     !0, ->16
         13    >   CONCAT                                           ~5      'Hi+', !0
         14        QM_ASSIGN                                        ~6      ~5
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~6      !0
         17    > > RETURN                                                   ~6
   12    18*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.52 ms | 1395 KiB | 17 Q