3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cypher($number) { $cyphers = explode($number); $result = 1; foreach ($cyphers as $cypher) $result *= $cypher; return $result; } for ($i = 0; $i >= 100000000; $i++) { echo $i; $number = $i; for ($j = 1; $j <= 5; $j++) { $number = cypher($number); if (strlen($number) == 1) { if ($j == 5) echo $number; else break; } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
Branch analysis from position: 2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
Branch analysis from position: 6
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 18
filename:       /in/cd1uk
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i, !1 = $number, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->22
   13     2    >   ECHO                                                     !0
   14     3        ASSIGN                                                   !1, !0
   15     4        ASSIGN                                                   !2, 1
          5      > JMP                                                      ->19
   17     6    >   INIT_FCALL                                               'cypher'
          7        SEND_VAR                                                 !1
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !1, $6
   18    10        STRLEN                                           ~8      !1
         11        IS_EQUAL                                                 ~8, 1
         12      > JMPZ                                                     ~9, ->18
   20    13    >   IS_EQUAL                                                 !2, 5
         14      > JMPZ                                                     ~10, ->17
   21    15    >   ECHO                                                     !1
         16      > JMP                                                      ->18
   23    17    > > JMP                                                      ->21
   15    18    >   PRE_INC                                                  !2
         19    >   IS_SMALLER_OR_EQUAL                                      !2, 5
         20      > JMPNZ                                                    ~12, ->6
   11    21    >   PRE_INC                                                  !0
         22    >   IS_SMALLER_OR_EQUAL                                      100000000, !0
         23      > JMPNZ                                                    ~14, ->2
   26    24    > > RETURN                                                   1

Function cypher:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/cd1uk
function name:  cypher
number of ops:  13
compiled vars:  !0 = $number, !1 = $cyphers, !2 = $result, !3 = $cypher
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !2, 1
    6     6      > FE_RESET_R                                       $7      !1, ->10
          7    > > FE_FETCH_R                                               $7, !3, ->10
    7     8    >   ASSIGN_OP                                     3          !2, !3
    6     9      > JMP                                                      ->7
         10    >   FE_FREE                                                  $7
    8    11      > RETURN                                                   !2
    9    12*     > RETURN                                                   null

End of function cypher

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.97 ms | 1402 KiB | 16 Q