3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('mopo_1' => 'honta', 'hinta' => 200, 'mopo_2' => 'jamaha', 'hinta' => 320), array('mopo_1' => 'tunturi', 'hinta' => 180, 'mopo_3' => 'susuki', 'hinta' => 310), array('mopo_1' => 'manki', 'hinta' => 240, 'mopo_2' => 'peevee', 'hinta' => 1209) ); $key = array_search('1', array_column($array, 'hinta')); echo 'mopot: '; print_r($key);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/29uXH
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_search'
          2        SEND_VAL                                                 '1'
          3        INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'hinta'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
   11    10        ECHO                                                     'mopot%3A+'
   12    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.54 ms | 1394 KiB | 19 Q