3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p_field_type = "select{m,f}"; if(strpos($p_field_type, "{")!==FALSE && strpos($p_field_type, "}")!==FALSE) { echo "huzza!"; } else { echo "nuuuuh!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
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
Branch analysis from position: 13
filename:       /in/u1Afg
function name:  (null)
number of ops:  18
compiled vars:  !0 = $p_field_type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'select%7Bm%2Cf%7D'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%7B'
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                  1018  ~3      $2
          6      > JMPZ_EX                                          ~3      ~3, ->13
          7    >   INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '%7D'
         10        DO_ICALL                                         $4      
         11        TYPE_CHECK                                  1018  ~5      $4
         12        BOOL                                             ~3      ~5
         13    > > JMPZ                                                     ~3, ->16
         14    >   ECHO                                                     'huzza%21'
         15      > JMP                                                      ->17
         16    >   ECHO                                                     'nuuuuh%21'
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.75 ms | 1395 KiB | 15 Q