3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $string = current($a); $i = 0; while(next($a) && strlen($string.current($a)) < 3){ $string .= current(a); } echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 7
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
Branch analysis from position: 23
Branch analysis from position: 23
filename:       /in/mRR0d
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $string, !2 = $i
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                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5        ASSIGN                                                   !2, 0
    5     6      > JMP                                                      ->12
    6     7    >   INIT_FCALL                                               'current'
          8        FETCH_CONSTANT                                   ~7      'a'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        ASSIGN_OP                                     8          !1, $8
    5    12    >   INIT_FCALL                                               'next'
         13        SEND_REF                                                 !0
         14        DO_ICALL                                         $10     
         15      > JMPZ_EX                                          ~11     $10, ->23
         16    >   INIT_FCALL                                               'current'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $12     
         19        CONCAT                                           ~13     !1, $12
         20        STRLEN                                           ~14     ~13
         21        IS_SMALLER                                       ~15     ~14, 3
         22        BOOL                                             ~11     ~15
         23    > > JMPNZ                                                    ~11, ->7
    9    24    >   ECHO                                                     !1
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.98 ms | 1395 KiB | 17 Q