3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $string = current($a); $i = 0; while($b = next($a) && strlen($string.current($a)) < 3){ $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 = 46) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
Branch analysis from position: 19
Branch analysis from position: 19
filename:       /in/hp4g0
function name:  (null)
number of ops:  23
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      > JMPZ_EX                                          ~10     $9, ->19
         12    >   INIT_FCALL                                               'current'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $11     
         15        CONCAT                                           ~12     !1, $11
         16        STRLEN                                           ~13     ~12
         17        IS_SMALLER                                       ~14     ~13, 3
         18        BOOL                                             ~10     ~14
         19    >   ASSIGN                                           ~15     !3, ~10
         20      > JMPNZ                                                    ~15, ->7
    9    21    >   ECHO                                                     !1
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.54 ms | 1395 KiB | 17 Q