3v4l.org

run code in 300+ 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:  31
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                                               'in_array'
          5        SEND_VAL                                                 '8'
          6        INIT_FCALL                                               'array_column'
          7        FETCH_R                      global              ~2      '_SESSION'
          8        FETCH_DIM_R                                      ~3      ~2, 'basket'
          9        SEND_VAL                                                 ~3
         10        SEND_VAL                                                 0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
   10    16        ECHO                                                     '%0A'
   11    17        INIT_FCALL                                               'var_export'
         18        INIT_FCALL                                               'in_array'
         19        SEND_VAL                                                 '7'
         20        INIT_FCALL                                               'array_column'
         21        FETCH_R                      global              ~7      '_SESSION'
         22        FETCH_DIM_R                                      ~8      ~7, 'basket'
         23        SEND_VAL                                                 ~8
         24        SEND_VAL                                                 0
         25        DO_ICALL                                         $9      
         26        SEND_VAR                                                 $9
         27        DO_ICALL                                         $10     
         28        SEND_VAR                                                 $10
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.97 ms | 1004 KiB | 16 Q