3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['sSupplier'] = '["sk렌터카_중장기","sk렌터카","sk렌터카_중고차렌트","sk렌터카_중기"]'; print_r([0=>str_contains($_POST['sSupplier'], 'sk렌터카')]); $sSupplier = isset($_POST['sSupplier']) ? json_decode($_POST['sSupplier'], true) : null; print_r([1=>is_null($sSupplier)]); print_r([2=>!in_array('sk렌터카', $sSupplier)]); print_r([3=>in_array('sk렌터카', ['sk렌터카_asdfasf', 'sk렌터카_alksdjfiooiwejiowej12'])]); if(is_null($sSupplier) || !in_array('sk렌터카', $sSupplier)) { $data[] = [ "name" => "ad_list_sk_company", "image" => "/Feeds/48/803_cca07723db.png", "url" => "product?sSupplier=sk렌터카_중장기%2Csk렌터카%2Csk렌터카_중고차렌트%2Csk렌터카_중기", "title" => "SK다이렉트", "subTitle" => "SK다이렉트 보러가기" ]; } $os = array("Mac", "NT", "irix", "Linux"); if (in_array("Irix", $os)) { echo "Got Irix"; } if (in_array("mac", $os)) { echo "Got mac"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 47) Position 1 = 47, Position 2 = 53
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 54, Position 2 = 56
Branch analysis from position: 54
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 63
Branch analysis from position: 62
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 69
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 69
Branch analysis from position: 63
Branch analysis from position: 56
Branch analysis from position: 53
Branch analysis from position: 24
2 jumps found. (Code = 47) Position 1 = 47, Position 2 = 53
Branch analysis from position: 47
Branch analysis from position: 53
filename:       /in/GCUP2
function name:  (null)
number of ops:  70
compiled vars:  !0 = $sSupplier, !1 = $data, !2 = $os
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $3      '_POST'
          1        ASSIGN_DIM                                               $3, 'sSupplier'
          2        OP_DATA                                                  '%5B%22sk%EB%A0%8C%ED%84%B0%EC%B9%B4_%EC%A4%91%EC%9E%A5%EA%B8%B0%22%2C%22sk%EB%A0%8C%ED%84%B0%EC%B9%B4%22%2C%22sk%EB%A0%8C%ED%84%B0%EC%B9%B4_%EC%A4%91%EA%B3%A0%EC%B0%A8%EB%A0%8C%ED%8A%B8%22%2C%22sk%EB%A0%8C%ED%84%B0%EC%B9%B4_%EC%A4%91%EA%B8%B0%22%5D'
    4     3        INIT_FCALL                                               'print_r'
          4        INIT_FCALL                                               'str_contains'
          5        FETCH_R                      global              ~5      '_POST'
          6        FETCH_DIM_R                                      ~6      ~5, 'sSupplier'
          7        SEND_VAL                                                 ~6
          8        SEND_VAL                                                 'sk%EB%A0%8C%ED%84%B0%EC%B9%B4'
          9        DO_ICALL                                         $7      
         10        INIT_ARRAY                                       ~8      $7, 0
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                                 
    5    13        FETCH_IS                                         ~10     '_POST'
         14        ISSET_ISEMPTY_DIM_OBJ                         0          ~10, 'sSupplier'
         15      > JMPZ                                                     ~11, ->24
         16    >   INIT_FCALL                                               'json_decode'
         17        FETCH_R                      global              ~12     '_POST'
         18        FETCH_DIM_R                                      ~13     ~12, 'sSupplier'
         19        SEND_VAL                                                 ~13
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $14     
         22        QM_ASSIGN                                        ~15     $14
         23      > JMP                                                      ->25
         24    >   QM_ASSIGN                                        ~15     null
         25    >   ASSIGN                                                   !0, ~15
   10    26        INIT_FCALL                                               'print_r'
         27        TYPE_CHECK                                    2  ~17     !0
         28        INIT_ARRAY                                       ~18     ~17, 1
         29        SEND_VAL                                                 ~18
         30        DO_ICALL                                                 
   11    31        INIT_FCALL                                               'print_r'
         32        INIT_FCALL                                               'in_array'
         33        SEND_VAL                                                 'sk%EB%A0%8C%ED%84%B0%EC%B9%B4'
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                         $20     
         36        BOOL_NOT                                         ~21     $20
         37        INIT_ARRAY                                       ~22     ~21, 2
         38        SEND_VAL                                                 ~22
         39        DO_ICALL                                                 
   12    40        INIT_FCALL                                               'print_r'
         41        IN_ARRAY                                         ~24     'sk%EB%A0%8C%ED%84%B0%EC%B9%B4', <array>
         42        INIT_ARRAY                                       ~25     ~24, 3
         43        SEND_VAL                                                 ~25
         44        DO_ICALL                                                 
   14    45        TYPE_CHECK                                    2  ~27     !0
         46      > JMPNZ_EX                                         ~27     ~27, ->53
         47    >   INIT_FCALL                                               'in_array'
         48        SEND_VAL                                                 'sk%EB%A0%8C%ED%84%B0%EC%B9%B4'
         49        SEND_VAR                                                 !0
         50        DO_ICALL                                         $28     
         51        BOOL_NOT                                         ~29     $28
         52        BOOL                                             ~27     ~29
         53    > > JMPZ                                                     ~27, ->56
   16    54    >   ASSIGN_DIM                                               !1
   17    55        OP_DATA                                                  <array>
   26    56    >   ASSIGN                                                   !2, <array>
   27    57        INIT_FCALL                                               'in_array'
         58        SEND_VAL                                                 'Irix'
         59        SEND_VAR                                                 !2
         60        DO_ICALL                                         $32     
         61      > JMPZ                                                     $32, ->63
   28    62    >   ECHO                                                     'Got+Irix'
   30    63    >   INIT_FCALL                                               'in_array'
         64        SEND_VAL                                                 'mac'
         65        SEND_VAR                                                 !2
         66        DO_ICALL                                         $33     
         67      > JMPZ                                                     $33, ->69
   31    68    >   ECHO                                                     'Got+mac'
   32    69    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.92 ms | 1006 KiB | 17 Q