3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array('1','2'); var_dump(!count(array_filter('is_array', $values))); var_dump(isset($values[0]), $values[0]); var_dump(isset($values[0][0]), $values[0][0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XqieD
function name:  (null)
number of ops:  25
compiled vars:  !0 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_filter'
          3        SEND_VAL                                                 'is_array'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        COUNT                                            ~3      $2
          7        BOOL_NOT                                         ~4      ~3
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        ISSET_ISEMPTY_DIM_OBJ                         0  ~6      !0, 0
         12        SEND_VAL                                                 ~6
         13        FETCH_DIM_R                                      ~7      !0, 0
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
    5    16        INIT_FCALL                                               'var_dump'
         17        FETCH_DIM_IS                                     ~9      !0, 0
         18        ISSET_ISEMPTY_DIM_OBJ                         0  ~10     ~9, 0
         19        SEND_VAL                                                 ~10
         20        FETCH_DIM_R                                      ~11     !0, 0
         21        FETCH_DIM_R                                      ~12     ~11, 0
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.23 ms | 1395 KiB | 17 Q