3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
220.67 ms | 1395 KiB | 15 Q