3v4l.org

run code in 300+ PHP versions simultaneously
<?php $money = 100000000; $len = strlen($money); $m = ''; $money = strrev($money); for ($i = 0; $i < $len; $i++) { if (($i == 3 || ($i > 3 && ($i - 1) % 2 == 0)) && $i != $len) { $m .= ','; } $m .= $money[$i]; } echo strrev($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 10
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 10
Branch analysis from position: 29
Branch analysis from position: 10
Branch analysis from position: 24
Branch analysis from position: 22
Branch analysis from position: 18
Branch analysis from position: 19
filename:       /in/3WaZO
function name:  (null)
number of ops:  34
compiled vars:  !0 = $money, !1 = $len, !2 = $m, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 100000000
    4     1        STRLEN                                           ~5      !0
          2        ASSIGN                                                   !1, ~5
    5     3        ASSIGN                                                   !2, ''
    6     4        INIT_FCALL                                               'strrev'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !0, $8
    7     8        ASSIGN                                                   !3, 0
          9      > JMP                                                      ->27
    8    10    >   IS_EQUAL                                         ~11     !3, 3
         11      > JMPNZ_EX                                         ~11     ~11, ->19
         12    >   IS_SMALLER                                       ~12     3, !3
         13      > JMPZ_EX                                          ~12     ~12, ->18
         14    >   SUB                                              ~13     !3, 1
         15        MOD                                              ~14     ~13, 2
         16        IS_EQUAL                                         ~15     ~14, 0
         17        BOOL                                             ~12     ~15
         18    >   BOOL                                             ~11     ~12
         19    > > JMPZ_EX                                          ~11     ~11, ->22
         20    >   IS_NOT_EQUAL                                     ~16     !3, !1
         21        BOOL                                             ~11     ~16
         22    > > JMPZ                                                     ~11, ->24
    9    23    >   ASSIGN_OP                                     8          !2, '%2C'
   11    24    >   FETCH_DIM_R                                      ~18     !0, !3
         25        ASSIGN_OP                                     8          !2, ~18
    7    26        PRE_INC                                                  !3
         27    >   IS_SMALLER                                               !3, !1
         28      > JMPNZ                                                    ~21, ->10
   13    29    >   INIT_FCALL                                               'strrev'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                         $22     
         32        ECHO                                                     $22
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.17 ms | 1396 KiB | 15 Q