3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeString=' <script language="javascript"> var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; //January is 0! var yyyy = today.getFullYear(); if(dd<10) { dd="0"+dd } if(mm<10) { mm="0"+mm } today = mm+"/"+dd+"/"+yyyy + " " +today.getHours() + ":" + today.getMinutes()+":" + today.getSeconds(); document.write(today); </script> '; echo "INSERT INTO `apply` VALUES ('test', '1', '$timeString') ";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o0btA
function name:  (null)
number of ops:  6
compiled vars:  !0 = $timeString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A%3Cscript+language%3D%22javascript%22%3E%0Avar+today+%3D+new+Date%28%29%3B%0Avar+dd+%3D+today.getDate%28%29%3B%0Avar+mm+%3D+today.getMonth%28%29%2B1%3B+%2F%2FJanuary+is+0%21%0Avar+yyyy+%3D+today.getFullYear%28%29%3B%0A%0Aif%28dd%3C10%29+%7B%0A++++dd%3D%220%22%2Bdd%0A%7D+%0A%0Aif%28mm%3C10%29+%7B%0A++++mm%3D%220%22%2Bmm%0A%7D+%0A%0Atoday+%3D+mm%2B%22%2F%22%2Bdd%2B%22%2F%22%2Byyyy+%2B+%22+%22+%2Btoday.getHours%28%29+%2B+%22%3A%22+%2B+today.getMinutes%28%29%2B%22%3A%22+%2B+today.getSeconds%28%29%3B%0Adocument.write%28today%29%3B%0A%3C%2Fscript%3E+'
   23     1        ROPE_INIT                                     3  ~3      'INSERT+INTO+%60apply%60+VALUES+%28%27test%27%2C+%271%27%2C+%27'
          2        ROPE_ADD                                      1  ~3      ~3, !0
          3        ROPE_END                                      2  ~2      ~3, '%27%29+'
          4        ECHO                                                     ~2
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.3 ms | 1393 KiB | 13 Q