3v4l.org

run code in 300+ PHP versions simultaneously
<?php $details = array( array('year' => '1990'), array('year' => '1995'), array('condition' => 'working'), array('type' => 'bus'), array('type' => 'car'), array('type' => 'bike'), ); $details = array_column($details, 'year'); print_r($details);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZKVBD
function name:  (null)
number of ops:  10
compiled vars:  !0 = $details
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'year'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
   14     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1394 KiB | 17 Q