3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pourcentage_base=0.1; $min=10; $max=50; $vendeur=0.02; $association= array ( array(1,500,5), array(501,1000,10), array(1001,3000,15), array(3001,1000000,20) ); $entrepot=100; $montant=1000; function creer_matrice() { $matrice=array(); for ($i=1; $i<=10 ; $i+1) { $frais_base=$i*$pourcentage_base; if ($frais_base<10) { $frais_base=10; } elseif ($frais_base>50) { $frais_base=50; } } echo $frais_base; } creer_matrice(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gPoN1
function name:  (null)
number of ops:  10
compiled vars:  !0 = $pourcentage_base, !1 = $min, !2 = $max, !3 = $vendeur, !4 = $association, !5 = $entrepot, !6 = $montant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0.1
    4     1        ASSIGN                                                   !1, 10
    5     2        ASSIGN                                                   !2, 50
    6     3        ASSIGN                                                   !3, 0.02
    7     4        ASSIGN                                                   !4, <array>
   14     5        ASSIGN                                                   !5, 100
   16     6        ASSIGN                                                   !6, 1000
   34     7        INIT_FCALL                                               'creer_matrice'
          8        DO_FCALL                                      0          
   35     9      > RETURN                                                   1

Function creer_matrice:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
Branch analysis from position: 12
filename:       /in/gPoN1
function name:  creer_matrice
number of ops:  18
compiled vars:  !0 = $matrice, !1 = $i, !2 = $frais_base, !3 = $pourcentage_base
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN                                                   !0, <array>
   22     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->14
   23     3    >   MUL                                              ~6      !1, !3
          4        ASSIGN                                                   !2, ~6
   24     5        IS_SMALLER                                               !2, 10
          6      > JMPZ                                                     ~8, ->9
   25     7    >   ASSIGN                                                   !2, 10
          8      > JMP                                                      ->12
   26     9    >   IS_SMALLER                                               50, !2
         10      > JMPZ                                                     ~10, ->12
   27    11    >   ASSIGN                                                   !2, 50
   22    12    >   ADD                                              ~12     !1, 1
         13        FREE                                                     ~12
         14    >   IS_SMALLER_OR_EQUAL                                      !1, 10
         15      > JMPNZ                                                    ~13, ->3
   31    16    >   ECHO                                                     !2
   32    17      > RETURN                                                   null

End of function creer_matrice

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.3 ms | 1399 KiB | 14 Q