3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counts = []; $item = 1; $counts[$item] ?? $counts[$item] = 1 ?? $counts[$item]++; var_dump($counts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZjWSn
function name:  (null)
number of ops:  16
compiled vars:  !0 = $counts, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 1
    6     2        FETCH_DIM_IS                                     ~4      !0, !1
          3        COALESCE                                         ~5      ~4
          4        COALESCE                                         ~7      1
          5        FETCH_DIM_RW                                     $8      !0, !1
          6        POST_INC                                         ~9      $8
          7        QM_ASSIGN                                        ~7      ~9
          8        ASSIGN_DIM                                       ~6      !0, !1
          9        OP_DATA                                                  ~7
         10        QM_ASSIGN                                        ~5      ~6
         11        FREE                                                     ~5
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.96 ms | 1394 KiB | 15 Q