3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayList = "20891,20892,20896,20897,20898,20901,20902,20903,20904,20905"; $product_item = array('pid' => 20891); if(in_array($product_item['pid'], json_decode("[".$arrayList."]"))) { print "Found it!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/09c4t
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arrayList, !1 = $product_item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '20891%2C20892%2C20896%2C20897%2C20898%2C20901%2C20902%2C20903%2C20904%2C20905'
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'in_array'
          3        FETCH_DIM_R                                      ~4      !1, 'pid'
          4        SEND_VAL                                                 ~4
          5        INIT_FCALL                                               'json_decode'
          6        CONCAT                                           ~5      '%5B', !0
          7        CONCAT                                           ~6      ~5, '%5D'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12      > JMPZ                                                     $8, ->14
         13    >   ECHO                                                     'Found+it%21'
         14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.92 ms | 1394 KiB | 17 Q