3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentproduct = "Big fat vest"; $groupID = array("Vest", "Snapback", "Sock", "Cap", "Top", "Tee", "T-Shirt"); if (strpos($groupID, $currentproduct) !== false) { $_customGroupID = "68"; } else { $_customGroupID = "89"; } echo "group id is " . $_customGroupID; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vVIDV
function name:  (null)
number of ops:  14
compiled vars:  !0 = $currentproduct, !1 = $groupID, !2 = $_customGroupID
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Big+fat+vest'
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        TYPE_CHECK                                  1018          $5
          7      > JMPZ                                                     ~6, ->10
    5     8    >   ASSIGN                                                   !2, '68'
          9      > JMP                                                      ->11
    8    10    >   ASSIGN                                                   !2, '89'
   11    11    >   CONCAT                                           ~9      'group+id+is+', !2
         12        ECHO                                                     ~9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.74 ms | 1386 KiB | 15 Q