3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Mr N/A N/A'; if(strpos(trim($string),'N/A') !== false || strpos(trim($string), 'Concern') !== false) { return 'To Home'; } else { return $string ? 'Hi ' . $string : $string; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/gDX26
function name:  (null)
number of ops:  29
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  ~4      $3
          9      > JMPNZ_EX                                         ~4      ~4, ->19
         10    >   INIT_FCALL                                               'strpos'
         11        INIT_FCALL                                               'trim'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        SEND_VAL                                                 'Concern'
         16        DO_ICALL                                         $6      
         17        TYPE_CHECK                                  1018  ~7      $6
         18        BOOL                                             ~4      ~7
         19    > > JMPZ                                                     ~4, ->22
    7    20    > > RETURN                                                   'To+Home'
         21*       JMP                                                      ->28
   11    22    > > JMPZ                                                     !0, ->26
         23    >   CONCAT                                           ~8      'Hi+', !0
         24        QM_ASSIGN                                        ~9      ~8
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~9      !0
         27    > > RETURN                                                   ~9
   12    28*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.79 ms | 1396 KiB | 17 Q