3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = [ 'foo' => NULL, ]; print_r(count($f['foo'])); print_r(count($f['bar']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lt6dR
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'print_r'
          2        FETCH_DIM_R                                      ~2      !0, 'foo'
          3        COUNT                                            ~3      ~2
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'print_r'
          7        FETCH_DIM_R                                      ~5      !0, 'bar'
          8        COUNT                                            ~6      ~5
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.36 ms | 1003 KiB | 14 Q