3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $co= 02015; $cv= 15; $vu= 20000; $st= cv * vu; $d= st * 0.10; $t= st - d; echo "El codigo del producto es: $co \n". "La cantidad vendida es: $cv \n". "El valor unitario es de: $vu". "Subtotal: $st \n ". "Descuento 10%: $d \n". "TOTAL A PAGAR: $t"; ?>
based on LEjUR
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4gr2t
function name:  (null)
number of ops:  37
compiled vars:  !0 = $co, !1 = $cv, !2 = $vu, !3 = $st, !4 = $d, !5 = $t
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 1037
   4     1        ASSIGN                                                   !1, 15
   5     2        ASSIGN                                                   !2, 20000
   6     3        FETCH_CONSTANT                                   ~9      'cv'
         4        FETCH_CONSTANT                                   ~10     'vu'
         5        MUL                                              ~11     ~9, ~10
         6        ASSIGN                                                   !3, ~11
   7     7        FETCH_CONSTANT                                   ~13     'st'
         8        MUL                                              ~14     ~13, 0.1
         9        ASSIGN                                                   !4, ~14
   8    10        FETCH_CONSTANT                                   ~16     'st'
        11        FETCH_CONSTANT                                   ~17     'd'
        12        SUB                                              ~18     ~16, ~17
        13        ASSIGN                                                   !5, ~18
  11    14        ROPE_INIT                                     3  ~21     'El+codigo+del+producto+es%3A+'
        15        ROPE_ADD                                      1  ~21     ~21, !0
        16        ROPE_END                                      2  ~20     ~21, '+%0A'
  12    17        ROPE_INIT                                     3  ~24     'La+cantidad+vendida+es%3A+'
        18        ROPE_ADD                                      1  ~24     ~24, !1
        19        ROPE_END                                      2  ~23     ~24, '+%0A'
        20        CONCAT                                           ~26     ~20, ~23
  13    21        NOP                                                      
        22        FAST_CONCAT                                      ~27     'El+valor+unitario+es+de%3A+', !2
        23        CONCAT                                           ~28     ~26, ~27
  14    24        ROPE_INIT                                     3  ~30     'Subtotal%3A+'
        25        ROPE_ADD                                      1  ~30     ~30, !3
        26        ROPE_END                                      2  ~29     ~30, '+%0A+'
        27        CONCAT                                           ~32     ~28, ~29
  15    28        ROPE_INIT                                     3  ~34     'Descuento+10%25%3A+'
        29        ROPE_ADD                                      1  ~34     ~34, !4
        30        ROPE_END                                      2  ~33     ~34, '+%0A'
        31        CONCAT                                           ~36     ~32, ~33
  16    32        NOP                                                      
        33        FAST_CONCAT                                      ~37     'TOTAL+A+PAGAR%3A+', !5
        34        CONCAT                                           ~38     ~36, ~37
        35        ECHO                                                     ~38
  18    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0