3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.25 ms | 1395 KiB | 17 Q