3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.07 ms | 1394 KiB | 15 Q