3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attempts = array(); $localTaskId = 3; $attempts[$localTaskId] = isset ($attempts[$localTaskId]) ? (++ $attempts[$localTaskId]) : ($attempts[$localTaskId] = 1); echo $attempts[$localTaskId];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s9SjP
function name:  (null)
number of ops:  16
compiled vars:  !0 = $attempts, !1 = $localTaskId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 3
    8     2        ISSET_ISEMPTY_DIM_OBJ                         0          !0, !1
          3      > JMPZ                                                     ~5, ->8
          4    >   FETCH_DIM_RW                                     $6      !0, !1
          5        PRE_INC                                          ~7      $6
          6        QM_ASSIGN                                        ~8      ~7
          7      > JMP                                                      ->11
          8    >   ASSIGN_DIM                                       ~9      !0, !1
          9        OP_DATA                                                  1
         10        QM_ASSIGN                                        ~8      ~9
         11    >   ASSIGN_DIM                                               !0, !1
         12        OP_DATA                                                  ~8
   11    13        FETCH_DIM_R                                      ~10     !0, !1
         14        ECHO                                                     ~10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.99 ms | 1393 KiB | 13 Q