3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dst = 'a=b'; // $dst has no = leading or trailing or missing if (!in_array(strpos($dst, '='), [0, false, strlen($dst) - 1])) { print $dst; } if (str_contains($dst, '=') && !str_starts_with($dst, '=') && !str_ends_with($dst, '=')) { print $dst; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 23
Branch analysis from position: 16
Branch analysis from position: 11
filename:       /in/I6pnm
function name:  (null)
number of ops:  26
compiled vars:  !0 = $dst
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'a%3Db'
    5     1        FRAMELESS_ICALL_2                strpos              ~2      !0, '%3D'
          2        INIT_ARRAY                                           ~3      0
          3        ADD_ARRAY_ELEMENT                                    ~3      <false>
          4        STRLEN                                               ~4      !0
          5        SUB                                                  ~5      ~4, 1
          6        ADD_ARRAY_ELEMENT                                    ~3      ~5
          7        FRAMELESS_ICALL_2                in_array            ~6      ~2, ~3
          8        BOOL_NOT                                             ~7      ~6
          9      > JMPZ                                                         ~7, ->11
    6    10    >   ECHO                                                         !0
   10    11    >   FRAMELESS_ICALL_2                str_contains        ~8      !0, '%3D'
         12      > JMPZ_EX                                              ~8      ~8, ->16
         13    >   FRAMELESS_ICALL_2                str_starts_with      ~9      !0, '%3D'
         14        BOOL_NOT                                             ~10     ~9
         15        BOOL                                                 ~8      ~10
         16    > > JMPZ_EX                                              ~8      ~8, ->23
         17    >   INIT_FCALL                                                   'str_ends_with'
         18        SEND_VAR                                                     !0
         19        SEND_VAL                                                     '%3D'
         20        DO_ICALL                                             $11     
         21        BOOL_NOT                                             ~12     $11
         22        BOOL                                                 ~8      ~12
         23    > > JMPZ                                                         ~8, ->25
   11    24    >   ECHO                                                         !0
   12    25    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.2 ms | 790 KiB | 9 Q