3v4l.org

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

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
Branch analysis from position: 13
filename:       /in/veIlb
function name:  f
number of ops:  20
compiled vars:  !0 = $rr, !1 = $i, !2 = $f, !3 = $gg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '121245121245612121646212'
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->17
    7     3    >   INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '12'
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    8     9        MOD                                              ~8      !1, 20
         10        IS_IDENTICAL                                             ~8, 0
         11      > JMPZ                                                     ~9, ->13
   10    12    >   ECHO                                                     !2
   12    13    >   MUL                                              ~10     !1, 345.77
         14        SUB                                              ~11     ~10, !1
         15        ASSIGN                                                   !3, ~11
    5    16        PRE_INC                                                  !1
         17    >   IS_SMALLER                                               !1, 2000
         18      > JMPNZ                                                    ~14, ->3
   15    19    > > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.55 ms | 1399 KiB | 16 Q