3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mixed = array(new Exception(), 25); $foo = &current($mixed); next($mixed); $bar = &current($mixed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ogKTd
function name:  (null)
number of ops:  17
compiled vars:  !0 = $mixed, !1 = $foo, !2 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'Exception'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~5      $3
          3        ADD_ARRAY_ELEMENT                                ~5      25
          4        ASSIGN                                                   !0, ~5
    4     5        INIT_FCALL                                               'current'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN_REF                                               !1, $7
    5     9        INIT_FCALL                                               'next'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'current'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $10     
         15        ASSIGN_REF                                               !2, $10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.42 ms | 1394 KiB | 17 Q