3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = []; $tags[] = [ "name" => "Farmacia", "lastUpdated" => "2018-02-14 21:07:42" ]; $tags[] = [ "name" => "Farmacia2", "lastUpdated" => "2018-02-14 21:07:42" ]; $tags[] = [ "name" => "Farmacia3", "lastUpdated" => "2018-02-14 21:07:42" ]; $res = array_search('Farmacia4', array_column($tags, 'name')); echo $res;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4RG8e
function name:  (null)
number of ops:  18
compiled vars:  !0 = $tags, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0
    5     2        OP_DATA                                                  <array>
    9     3        ASSIGN_DIM                                               !0
   10     4        OP_DATA                                                  <array>
   13     5        ASSIGN_DIM                                               !0
   14     6        OP_DATA                                                  <array>
   19     7        INIT_FCALL                                               'array_search'
          8        SEND_VAL                                                 'Farmacia4'
          9        INIT_FCALL                                               'array_column'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'name'
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
   21    16        ECHO                                                     !1
   22    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.85 ms | 1394 KiB | 17 Q