3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = array( array( 'url' => 'website.com1/etcetcetc', 'itag' => 43, 'quality' => 'medium', 'something' => 'nill' ), array( 'url' => 'website.com2/etcetcetc', 'itag' => 18, 'quality' => 'medium', 'something' => 'nill' ), array( 'url' => 'website.com3/etcetcetc', 'itag' => 5, 'quality' => 'small', 'something' => 'nill' ), array( 'url' => 'website.com4/etcetcetc', 'itag' => 36, 'quality' => 'small', 'something' => 'nill' ), array( 'url' => 'website.com5/etcetcetc', 'itag' => 17, 'quality' => 'small', 'something' => 'nill' ) ); $no = '43';// whatever u want foreach($os as $r) { if (in_array(($r['itag'] == $no), $os)) { echo '<a href="'.$r['url'].'">quality: '.$r['itag'].'</a>'; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 18
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/dkUt4
function name:  (null)
number of ops:  21
compiled vars:  !0 = $os, !1 = $no, !2 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, '43'
   13     2      > FE_RESET_R                                       $5      !0, ->19
          3    > > FE_FETCH_R                                               $5, !2, ->19
   15     4    >   INIT_FCALL                                               'in_array'
          5        FETCH_DIM_R                                      ~6      !2, 'itag'
          6        IS_EQUAL                                         ~7      !1, ~6
          7        SEND_VAL                                                 ~7
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $8      
         10      > JMPZ                                                     $8, ->18
   16    11    >   FETCH_DIM_R                                      ~9      !2, 'url'
         12        CONCAT                                           ~10     '%3Ca+href%3D%22', ~9
         13        CONCAT                                           ~11     ~10, '%22%3Equality%3A+'
         14        FETCH_DIM_R                                      ~12     !2, 'itag'
         15        CONCAT                                           ~13     ~11, ~12
         16        CONCAT                                           ~14     ~13, '%3C%2Fa%3E'
         17        ECHO                                                     ~14
   13    18    > > JMP                                                      ->3
         19    >   FE_FREE                                                  $5
   18    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.62 ms | 943 KiB | 16 Q