3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = (object)['v' => 1]; $c = $a->v + $a->v++; var_dump($c); // int(2)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/94ELo
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~2      <array>
          1        ASSIGN                                                   !0, ~2
    4     2        FETCH_OBJ_R                                      ~4      !0, 'v'
          3        POST_INC_OBJ                                     ~5      !0, 'v'
          4        ADD                                              ~6      ~4, ~5
          5        ASSIGN                                                   !1, ~6
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.01 ms | 1394 KiB | 15 Q