3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 2; $i++) { $sql = "INSERT INTO `tblchitiethoadon`(`Ma_HD`, `Ma_SP`, `Ten_SP`, `SoLuong`, `Gia`)"; $sql.=" VALUES ($mahd,$proid,'$prodName',$taken,$price)"; echo $sql; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 2
Branch analysis from position: 19
Branch analysis from position: 2
filename:       /in/DNP4k
function name:  (null)
number of ops:  20
compiled vars:  !0 = $i, !1 = $sql, !2 = $mahd, !3 = $proid, !4 = $prodName, !5 = $taken, !6 = $price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->17
    8     2    >   ASSIGN                                                   !1, 'INSERT+INTO+%60tblchitiethoadon%60%28%60Ma_HD%60%2C+%60Ma_SP%60%2C+%60Ten_SP%60%2C+%60SoLuong%60%2C+%60Gia%60%29'
    9     3        ROPE_INIT                                    11  ~10     '++VALUES+%28'
          4        ROPE_ADD                                      1  ~10     ~10, !2
          5        ROPE_ADD                                      2  ~10     ~10, '%2C'
          6        ROPE_ADD                                      3  ~10     ~10, !3
          7        ROPE_ADD                                      4  ~10     ~10, '%2C%27'
          8        ROPE_ADD                                      5  ~10     ~10, !4
          9        ROPE_ADD                                      6  ~10     ~10, '%27%2C'
         10        ROPE_ADD                                      7  ~10     ~10, !5
         11        ROPE_ADD                                      8  ~10     ~10, '%2C'
         12        ROPE_ADD                                      9  ~10     ~10, !6
         13        ROPE_END                                     10  ~9      ~10, '%29'
         14        ASSIGN_OP                                     8          !1, ~9
   10    15        ECHO                                                     !1
    5    16        PRE_INC                                                  !0
         17    >   IS_SMALLER                                               !0, 2
         18      > JMPNZ                                                    ~18, ->2
   13    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.22 ms | 1394 KiB | 13 Q