3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { $dd = array(); $rr = '121245121245612121646212'; for ($i = 0; $i<2000; $i++) { $f = str_replace('12','', $rr); if($i%20 ===0 ) { echo $f; $dd[] = '\n'.$f; } $gg = $i*345.77-$i; } foreach ($dd as $d) { print_r($d); } } f(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ostSO
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'f'
          1        DO_FCALL                                      0          
   24     2      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 4
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
2 jumps found. (Code = 78) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 4
Branch analysis from position: 23
Branch analysis from position: 4
Branch analysis from position: 17
filename:       /in/ostSO
function name:  f
number of ops:  31
compiled vars:  !0 = $dd, !1 = $rr, !2 = $i, !3 = $f, !4 = $gg, !5 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, '121245121245612121646212'
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->21
    8     4    >   INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '12'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !3, $9
    9    10        MOD                                              ~11     !2, 20
         11        IS_IDENTICAL                                             ~11, 0
         12      > JMPZ                                                     ~12, ->17
   11    13    >   ECHO                                                     !3
   12    14        CONCAT                                           ~14     '%5Cn', !3
         15        ASSIGN_DIM                                               !0
         16        OP_DATA                                                  ~14
   14    17    >   MUL                                              ~15     !2, 345.77
         18        SUB                                              ~16     ~15, !2
         19        ASSIGN                                                   !4, ~16
    6    20        PRE_INC                                                  !2
         21    >   IS_SMALLER                                               !2, 2000
         22      > JMPNZ                                                    ~19, ->4
   17    23    > > FE_RESET_R                                       $20     !0, ->29
         24    > > FE_FETCH_R                                               $20, !5, ->29
   19    25    >   INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !5
         27        DO_ICALL                                                 
   17    28      > JMP                                                      ->24
         29    >   FE_FREE                                                  $20
   21    30      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.21 ms | 1394 KiB | 18 Q