3v4l.org

run code in 300+ PHP versions simultaneously
<?php $links[0]="zero"; $links[1]="um"; $links[2]="dois"; $links[1] = current($links); $links[1] = next($links); print_r($links);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LrB9L
function name:  (null)
number of ops:  20
compiled vars:  !0 = $links
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  'zero'
    4     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  'um'
    5     4        ASSIGN_DIM                                               !0, 2
          5        OP_DATA                                                  'dois'
    6     6        INIT_FCALL                                               'current'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN_DIM                                               !0, 1
         10        OP_DATA                                                  $5
    7    11        INIT_FCALL                                               'next'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                         $7      
         14        ASSIGN_DIM                                               !0, 1
         15        OP_DATA                                                  $7
    8    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.82 ms | 1394 KiB | 19 Q