3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counts = []; $item = 1; $counts[$item] ?? $counts[$item]++ ?? $counts[$item] = 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3JeQd
function name:  (null)
number of ops:  13
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
    7     2        FETCH_DIM_IS                                     ~4      !0, !1
          3        COALESCE                                         ~5      ~4
          4        FETCH_DIM_RW                                     $6      !0, !1
          5        POST_INC                                         ~7      $6
          6        COALESCE                                         ~8      ~7
          7        ASSIGN_DIM                                       ~9      !0, !1
          8        OP_DATA                                                  1
          9        QM_ASSIGN                                        ~8      ~9
         10        QM_ASSIGN                                        ~5      ~8
         11        FREE                                                     ~5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.74 ms | 1392 KiB | 13 Q