3v4l.org

run code in 300+ PHP versions simultaneously
<?php $route = array('product', '1306','37'); var_dump(current($route)); next($route); var_dump(current($route)); next($route); var_dump(current($route)); next($route); var_dump(current($route)); next($route); var_dump(current($route)); next($route);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qEvtB
function name:  (null)
number of ops:  47
compiled vars:  !0 = $route
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'current'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'next'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'current'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'next'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                                 
   10    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'current'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                                 
   11    25        INIT_FCALL                                               'next'
         26        SEND_REF                                                 !0
         27        DO_ICALL                                                 
   13    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'current'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $11     
         32        SEND_VAR                                                 $11
         33        DO_ICALL                                                 
   14    34        INIT_FCALL                                               'next'
         35        SEND_REF                                                 !0
         36        DO_ICALL                                                 
   16    37        INIT_FCALL                                               'var_dump'
         38        INIT_FCALL                                               'current'
         39        SEND_VAR                                                 !0
         40        DO_ICALL                                         $14     
         41        SEND_VAR                                                 $14
         42        DO_ICALL                                                 
   17    43        INIT_FCALL                                               'next'
         44        SEND_REF                                                 !0
         45        DO_ICALL                                                 
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.11 ms | 1400 KiB | 19 Q