3v4l.org

run code in 300+ PHP versions simultaneously
<?php $totalLitros = "10 litros"; $divida = 0; $oLitro = "1 dolar"; for ($i=1; $i <=$totalLitros; $i++) { $divida += $oLitro; } echo "Desconto: {$divida} dolares";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 5
Branch analysis from position: 9
Branch analysis from position: 5
filename:       /in/Zf0UL
function name:  (null)
number of ops:  14
compiled vars:  !0 = $totalLitros, !1 = $divida, !2 = $oLitro, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '10+litros'
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, '1+dolar'
    7     3        ASSIGN                                                   !3, 1
          4      > JMP                                                      ->7
    8     5    >   ASSIGN_OP                                     1          !1, !2
    7     6        PRE_INC                                                  !3
          7    >   IS_SMALLER_OR_EQUAL                                      !3, !0
          8      > JMPNZ                                                    ~10, ->5
   11     9    >   ROPE_INIT                                     3  ~12     'Desconto%3A+'
         10        ROPE_ADD                                      1  ~12     ~12, !1
         11        ROPE_END                                      2  ~11     ~12, '+dolares'
         12        ECHO                                                     ~11
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.87 ms | 1393 KiB | 13 Q