3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( array('name' => 'number1', 'number' => '0612345675'), array('name' => 'number2', 'number' => '0634345675'), array('name' => 'number3', 'number' => '0634378675') ); $valueToFind = '0634345675'; if (in_array($valueToFind, array_column($array, 'number'))){ echo 'found'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/TUtSL
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array, !1 = $valueToFind
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    9     1        ASSIGN                                                       !1, '0634345675'
   11     2        INIT_FCALL                                                   'array_column'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     'number'
          5        DO_ICALL                                             $4      
          6        FRAMELESS_ICALL_2                in_array            ~5      !1, $4
          7      > JMPZ                                                         ~5, ->9
   13     8    >   ECHO                                                         'found'
   14     9    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.09 ms | 2270 KiB | 14 Q