3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &pre_inc(&$a) { return ++$a; } $a = 5; $b = &$a; //echo $a; //echo $b; $c = &pre_inc($a); echo $a; echo $b; $d = $b++; echo $c.$d;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lORFW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 5
    8     1        ASSIGN_REF                                               !1, !0
   11     2        INIT_FCALL                                               'pre_inc'
          3        SEND_REF                                                 !0
          4        DO_FCALL                                      0  $6      
          5        ASSIGN_REF                                               !2, $6
   12     6        ECHO                                                     !0
   13     7        ECHO                                                     !1
   14     8        POST_INC                                         ~8      !1
          9        ASSIGN                                                   !3, ~8
   15    10        CONCAT                                           ~10     !2, !3
         11        ECHO                                                     ~10
         12      > RETURN                                                   1

Function pre_inc:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/lORFW
function name:  pre_inc
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        PRE_INC                                          ~1      !0
          2      > RETURN_BY_REF                                            ~1
    5     3*     > RETURN_BY_REF                                            null

End of function pre_inc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.68 ms | 1397 KiB | 14 Q