3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a='h1'; $a++; echo "$a\n"; $b='h1'; $b+=1; echo "$b\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5O5Vg
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'h1'
    3     1        PRE_INC                                                  !0
    4     2        NOP                                                      
          3        FAST_CONCAT                                      ~4      !0, '%0A'
          4        ECHO                                                     ~4
    6     5        ASSIGN                                                   !1, 'h1'
    7     6        ASSIGN_OP                                     1          !1, 1
    8     7        NOP                                                      
          8        FAST_CONCAT                                      ~7      !1, '%0A'
          9        ECHO                                                     ~7
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.09 ms | 1397 KiB | 13 Q