3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = ''; $words = ['foo', 'bar', 'baz', 'fubar', 'fubaz']; while (300 > strlen($txt)) { $txt .= $words[array_rand($words)] . ' '; } echo rtrim($txt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/HNf8E
function name:  (null)
number of ops:  17
compiled vars:  !0 = $txt, !1 = $words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, <array>
    6     2      > JMP                                                      ->9
    7     3    >   INIT_FCALL                                               'array_rand'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        FETCH_DIM_R                                      ~5      !1, $4
          7        CONCAT                                           ~6      ~5, '+'
          8        ASSIGN_OP                                     8          !0, ~6
    6     9    >   STRLEN                                           ~8      !0
         10        IS_SMALLER                                               ~8, 300
         11      > JMPNZ                                                    ~9, ->3
   10    12    >   INIT_FCALL                                               'rtrim'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $10     
         15        ECHO                                                     $10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.36 ms | 1395 KiB | 17 Q