3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); // PHP 7.1 ALL error $nuova_data = '2021-10-05'; $row['BookID'] = 1; $query = "UPDATE book SET year = '$nuova_data' WHERE BookID = '$row'['BookID']"; //$query2 = $query = "UPDATE book SET year = '$nuova_data' WHERE BookID = '{$row['BookID']}'"; var_dump($query);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/21GA4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $nuova_data, !1 = $row, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, '2021-10-05'
    4     4        ASSIGN_DIM                                               !1, 'BookID'
          5        OP_DATA                                                  1
    5     6        ROPE_INIT                                     5  ~7      'UPDATE+book+SET+year+%3D+%27'
          7        ROPE_ADD                                      1  ~7      ~7, !0
          8        ROPE_ADD                                      2  ~7      ~7, '%27+WHERE+BookID+%3D+%27'
          9        ROPE_ADD                                      3  ~7      ~7, !1
         10        ROPE_END                                      4  ~6      ~7, '%27%5B%27BookID%27%5D'
         11        ASSIGN                                                   !2, ~6
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.08 ms | 989 KiB | 15 Q