3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.88 ms | 1393 KiB | 13 Q