3v4l.org

run code in 300+ PHP versions simultaneously
<?php function UnitsToday(){ include_once("connect.php"); $today= date("Y-m-d"); $sqlexec="select SUM(foss.`Qty`) from FringeOrder as fo inner join FringeOrderStatus as fos on fo.`Status` = fos.`ID` inner join FringeOrderItems as foss WHERE foss.`ID`='6' AND fo.`CreateDate` BETWEEN '$today 00:00:00' AND '$today 23:59:59' "; $result = $mysqli->query($sqlexec); $row = $result->fetch_row(); echo row[0]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Z7rg
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   1

Function unitstoday:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Z7rg
function name:  UnitsToday
number of ops:  22
compiled vars:  !0 = $today, !1 = $sqlexec, !2 = $result, !3 = $mysqli, !4 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INCLUDE_OR_EVAL                                          'connect.php', INCLUDE_ONCE
    5     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !0, $6
    6     5        ROPE_INIT                                     5  ~9      'select+SUM%28foss.%60Qty%60%29+from+FringeOrder+as+fo+inner+join+FringeOrderStatus+as+fos+on+fo.%60Status%60+%3D+fos.%60ID%60+inner+join+FringeOrderItems+as+foss+WHERE+foss.%60ID%60%3D%276%27+AND+fo.%60CreateDate%60+BETWEEN+%27'
          6        ROPE_ADD                                      1  ~9      ~9, !0
          7        ROPE_ADD                                      2  ~9      ~9, '+00%3A00%3A00%27+AND+%27'
          8        ROPE_ADD                                      3  ~9      ~9, !0
          9        ROPE_END                                      4  ~8      ~9, '+23%3A59%3A59%27+'
         10        ASSIGN                                                   !1, ~8
    7    11        INIT_METHOD_CALL                                         !3, 'query'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !2, $13
    8    15        INIT_METHOD_CALL                                         !2, 'fetch_row'
         16        DO_FCALL                                      0  $15     
         17        ASSIGN                                                   !4, $15
    9    18        FETCH_CONSTANT                                   ~17     'row'
         19        FETCH_DIM_R                                      ~18     ~17, 0
         20        ECHO                                                     ~18
   10    21      > RETURN                                                   null

End of function unitstoday

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.26 ms | 1395 KiB | 15 Q