3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stats = []; $author = 'markus'; echo ($stats[$author]['commits'] ?? 0) + 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XlRSj
function name:  (null)
number of ops:  9
compiled vars:  !0 = $stats, !1 = $author
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'markus'
    5     2        FETCH_DIM_IS                                     ~4      !0, !1
          3        FETCH_DIM_IS                                     ~5      ~4, 'commits'
          4        COALESCE                                         ~6      ~5
          5        QM_ASSIGN                                        ~6      0
          6        ADD                                              ~7      ~6, 1
          7        ECHO                                                     ~7
    6     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.69 ms | 995 KiB | 13 Q