3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.85 ms | 1394 KiB | 15 Q