3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yesterday = date('Y-m-d', strtotime("-1 days")); $sql = "SELECT fc.forum_id,count(fc.forum_id)as total_comments ". "FROM ForumComments as fc ". "WHERE $yesterday <= fc.updated_at ". "GROUP BY fc.forum_id ". "ORDER BY total_comments DESC "; echo($sql);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IvsOn
function name:  (null)
number of ops:  17
compiled vars:  !0 = $yesterday, !1 = $sql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '-1+days'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    7     8        ROPE_INIT                                     3  ~6      'WHERE+'
          9        ROPE_ADD                                      1  ~6      ~6, !0
         10        ROPE_END                                      2  ~5      ~6, '+%3C%3D+fc.updated_at+'
         11        CONCAT                                           ~8      'SELECT+fc.forum_id%2Ccount%28fc.forum_id%29as+total_comments+FROM+ForumComments+as+fc+', ~5
    8    12        CONCAT                                           ~9      ~8, 'GROUP+BY+fc.forum_id+'
    9    13        CONCAT                                           ~10     ~9, 'ORDER+BY+total_comments+DESC+'
    5    14        ASSIGN                                                   !1, ~10
   12    15        ECHO                                                     !1
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
220.49 ms | 1394 KiB | 17 Q