3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = 1; $p++; echo "got: $p<br>"; $n = 1; echo "also got: ".($n++)."<br>"; echo "and last: ".$n;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Yltg
function name:  (null)
number of ops:  14
compiled vars:  !0 = $p, !1 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        PRE_INC                                                  !0
    5     2        ROPE_INIT                                     3  ~5      'got%3A+'
          3        ROPE_ADD                                      1  ~5      ~5, !0
          4        ROPE_END                                      2  ~4      ~5, '%3Cbr%3E'
          5        ECHO                                                     ~4
    6     6        ASSIGN                                                   !1, 1
    7     7        POST_INC                                         ~8      !1
          8        CONCAT                                           ~9      'also+got%3A+', ~8
          9        CONCAT                                           ~10     ~9, '%3Cbr%3E'
         10        ECHO                                                     ~10
    8    11        CONCAT                                           ~11     'and+last%3A+', !1
         12        ECHO                                                     ~11
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.86 ms | 1393 KiB | 13 Q