3v4l.org

run code in 500+ PHP versions simultaneously
<?php $_SESSION['basket']=[ ["6"], ["5"], ["8"] ]; var_export(in_array('8',array_column($_SESSION['basket'],0))); echo "\n"; var_export(in_array('7',array_column($_SESSION['basket'],0)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UN6PZ
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                          global              $0      '_SESSION'
          1        ASSIGN_DIM                                                   $0, 'basket'
    4     2        OP_DATA                                                      <array>
    9     3        INIT_FCALL                                                   'var_export'
          4        INIT_FCALL                                                   'array_column'
          5        FETCH_R                          global              ~2      '_SESSION'
          6        FETCH_DIM_R                                          ~3      ~2, 'basket'
          7        SEND_VAL                                                     ~3
          8        SEND_VAL                                                     0
          9        DO_ICALL                                             $4      
         10        FRAMELESS_ICALL_2                in_array            ~5      '8', $4
         11        SEND_VAL                                                     ~5
         12        DO_ICALL                                                     
   10    13        ECHO                                                         '%0A'
   11    14        INIT_FCALL                                                   'var_export'
         15        INIT_FCALL                                                   'array_column'
         16        FETCH_R                          global              ~7      '_SESSION'
         17        FETCH_DIM_R                                          ~8      ~7, 'basket'
         18        SEND_VAL                                                     ~8
         19        SEND_VAL                                                     0
         20        DO_ICALL                                             $9      
         21        FRAMELESS_ICALL_2                in_array            ~10     '7', $9
         22        SEND_VAL                                                     ~10
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.31 ms | 2180 KiB | 15 Q