3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chunk = 'abcd'; $str = ''; // Generating a random string. for ($i = 0; $i < 8; ++$i) { $str = strrev($str . $chunk); } echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/3CahQ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $chunk, !1 = $str, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abcd'
    5     1        ASSIGN                                                   !1, ''
    8     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->10
    9     4    >   INIT_FCALL                                               'strrev'
          5        CONCAT                                           ~6      !1, !0
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    8     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 8
         11      > JMPNZ                                                    ~10, ->4
   12    12    >   ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.53 ms | 1394 KiB | 15 Q