3v4l.org

run code in 300+ PHP versions simultaneously
<?php $qs = array(10,30,40,50,60,70,80,90,99); foreach ($qs as $q) { $bonif = pow( 20, ($q / 100) ); $salary = round(1000 * $bonif); echo $salary . "($bonif)\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 20
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 20
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/scTVP
function name:  (null)
number of ops:  22
compiled vars:  !0 = $qs, !1 = $q, !2 = $bonif, !3 = $salary
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $5      !0, ->20
          2    > > FE_FETCH_R                                               $5, !1, ->20
    6     3    >   INIT_FCALL                                               'pow'
          4        SEND_VAL                                                 20
          5        DIV                                              ~6      !1, 100
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    8     9        INIT_FCALL                                               'round'
         10        MUL                                              ~9      !2, 1000
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !3, $10
    9    14        ROPE_INIT                                     3  ~13     '%28'
         15        ROPE_ADD                                      1  ~13     ~13, !2
         16        ROPE_END                                      2  ~12     ~13, '%29%0A'
         17        CONCAT                                           ~15     !3, ~12
         18        ECHO                                                     ~15
    5    19      > JMP                                                      ->2
         20    >   FE_FREE                                                  $5
   10    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.45 ms | 1395 KiB | 17 Q