3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<STR THEDLSDARNVNS CCVBXXMTGFRWS CVIYTVBVSDOPTR VBNMAITYSURFD MOTYYERSAWERTY MOITRUHDYRTBDI VNOWUNMBORN STR; $str = preg_replace("/\n/", "", $str); $fib = [1, 2, 3, 5, 8, 13, 21, 34, 55]; foreach ($fib as $pos) { echo substr($str, $pos - 1, 1); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/XWV6p
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str, !1 = $fib, !2 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'THEDLSDARNVNS+%0ACCVBXXMTGFRWS+%0ACVIYTVBVSDOPTR+%0AVBNMAITYSURFD+%0AMOTYYERSAWERTY+%0AMOITRUHDYRTBDI+%0AVNOWUNMBORN'
   13     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%0A%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
   15     7        ASSIGN                                                   !1, <array>
   17     8      > FE_RESET_R                                       $7      !1, ->18
          9    > > FE_FETCH_R                                               $7, !2, ->18
   18    10    >   INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !0
         12        SUB                                              ~8      !2, 1
         13        SEND_VAL                                                 ~8
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
   17    17      > JMP                                                      ->9
         18    >   FE_FREE                                                  $7
   19    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.1 ms | 1386 KiB | 17 Q