3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $string = current($a); $i = 0; while($b = next($a)){ $string .= $b; } echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/mJlsG
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $string, !2 = $i, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'current'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    4     5        ASSIGN                                                   !2, 0
    5     6      > JMP                                                      ->8
    6     7    >   ASSIGN_OP                                     8          !1, !3
    5     8    >   INIT_FCALL                                               'next'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                         $9      
         11        ASSIGN                                           ~10     !3, $9
         12      > JMPNZ                                                    ~10, ->7
    9    13    >   ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.34 ms | 1394 KiB | 17 Q