3v4l.org

run code in 200+ PHP versions simultaneously
<?php /** * TV Module Entry Point August 19, 2018 Ed $ * @package Joomla.site * @subpackage mod_tv * @copyright Copyright (c) 2019 CDXX All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access defined('_JEXEC') or die; // Include the syndicate functions only once require_once dirname(__FILE__) . '/helper.php'; $db = JFactory::getDbo(); $db->setQuery('SELECT title, introtext FROM #__content WHERE introtext LIKE "%Still Airing%"'); $rows = $db->loadAssocList(); $count = count($rows) / 2; $db = JFactory::getDbo(); $db->setQuery('SELECT title, introtext FROM #__content WHERE introtext LIKE "%Still Airing%" LIMIT ' . $count . ' ORDER BY title ASC'); $rowa = $db->loadAssocList(); $db = JFactory::getDbo(); $db->setQuery('SELECT title, introtext FROM #__content WHERE introtext LIKE "%Still Airing%" LIMIT ' . $count . ' OFFSET ' . $count . ' ORDER BY title ASC'); $rowb = $db->loadAssocList(); ?> <div style="margin:10px;"> <table style="width:100%;"> <tbody> <tr> <td style="font-weight:bold;width:50%;"> <?php foreach ($rowa as $item) { ?> <?php echo $item['title']; ?> <?php } ?> </td> <td style="font-weight:bold;width:50%;"> <?php foreach ($rowb as $item) { ?> <?php echo $item['title']; ?> <?php } ?> </td> </tr> </tbody> </table> </div>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 47, Position 2 = 53
Branch analysis from position: 47
2 jumps found. (Code = 78) Position 1 = 48, Position 2 = 53
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
Branch analysis from position: 53
2 jumps found. (Code = 77) Position 1 = 56, Position 2 = 62
Branch analysis from position: 56
2 jumps found. (Code = 78) Position 1 = 57, Position 2 = 62
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
Branch analysis from position: 62
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 62
Branch analysis from position: 53
filename:       /in/t0lRA
function name:  (null)
number of ops:  65
compiled vars:  !0 = $db, !1 = $rows, !2 = $count, !3 = $rowa, !4 = $rowb, !5 = $item
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  11     0  E >   DEFINED                                          ~6      '_JEXEC'
         1      > JMPNZ_EX                                         ~6      ~6, ->4
         2    > > EXIT                                                     
         3*       BOOL                                             ~6      <true>
  14     4    >   INIT_FCALL                                               'dirname'
         5        SEND_VAL                                                 '%2Fin%2Ft0lRA'
         6        DO_ICALL                                         $7      
         7        CONCAT                                           ~8      $7, '%2Fhelper.php'
         8        INCLUDE_OR_EVAL                                          ~8, REQUIRE_ONCE
  16     9        INIT_STATIC_METHOD_CALL                                  'JFactory', 'getDbo'
        10        DO_FCALL                                      0  $10     
        11        QM_ASSIGN                                                !0
  17    12        INIT_METHOD_CALL                                         !0, 'setQuery'
        13        SEND_VAL_EX                                              'SELECT+title%2C+introtext+%0A+++++++++++++++++FROM+%23__content%0A+++++++++++++++++WHERE+introtext+LIKE+%22%25Still+Airing%25%22'
        14        DO_FCALL                                      0          
  20    15        INIT_METHOD_CALL                                         !0, 'loadAssocList'
        16        DO_FCALL                                      0  $13     
        17        QM_ASSIGN                                                !1
  22    18        COUNT                                            ~15     !1
        19        DIV                                              ~16     ~15, 2
        20        QM_ASSIGN                                                !2
  24    21        INIT_STATIC_METHOD_CALL                                  'JFactory', 'getDbo'
        22        DO_FCALL                                      0  $18     
        23        QM_ASSIGN                                                !0
  25    24        INIT_METHOD_CALL                                         !0, 'setQuery'
  28    25        CONCAT                                           ~20     'SELECT+title%2C+introtext+%0A+++++++++++++++++FROM+%23__content%0A+++++++++++++++++WHERE+introtext+LIKE+%22%25Still+Airing%25%22%0A+++++++++++++++++LIMIT+', !2
        26        CONCAT                                           ~21     ~20, '%0A+++++++++++++++++ORDER+BY+title+ASC'
        27        SEND_VAL_EX                                              ~21
        28        DO_FCALL                                      0          
  30    29        INIT_METHOD_CALL                                         !0, 'loadAssocList'
        30        DO_FCALL                                      0  $23     
        31        QM_ASSIGN                                                !3
  33    32        INIT_STATIC_METHOD_CALL                                  'JFactory', 'getDbo'
        33        DO_FCALL                                      0  $25     
        34        QM_ASSIGN                                                !0
  34    35        INIT_METHOD_CALL                                         !0, 'setQuery'
  37    36        CONCAT                                           ~27     'SELECT+title%2C+introtext+%0A+++++++++++++++++FROM+%23__content%0A+++++++++++++++++WHERE+introtext+LIKE+%22%25Still+Airing%25%22%0A+++++++++++++++++LIMIT+', !2
        37        CONCAT                                           ~28     ~27, '+OFFSET+'
        38        CONCAT                                           ~29     ~28, !2
        39        CONCAT                                           ~30     ~29, '%0A+++++++++++++++++ORDER+BY+title+ASC'
        40        SEND_VAL_EX                                              ~30
        41        DO_FCALL                                      0          
  39    42        INIT_METHOD_CALL                                         !0, 'loadAssocList'
        43        DO_FCALL                                      0  $32     
        44        QM_ASSIGN                                                !4
  40    45        ASSIGN_OBJ                                               '%0A%0A%3Cdiv+style%3D%22margin%3A10px%3B%22%3E%0A%0A++%3Ctable+style%3D%22width%3A100%25%3B%22%3E%0A++%3Ctbody%3E%0A++%3Ctr%3E%0A++%3Ctd+style%3D%22font-weight%3Abold%3Bwidth%3A50%25%3B%22%3E%0A%0A++++++'
  49    46      > FE_RESET_R                                       $34     !3, ->53
        47    > > FE_FETCH_R                                               $34, !5, ->53
  50    48    >   ASSIGN_OBJ                                               '++++++'
        49        FETCH_DIM_R                                      ~35     !5, 'title'
        50        ASSIGN_OBJ                                               ~35
  51    51        ASSIGN_OBJ                                               '++++++'
  49    52      > JMP                                                      ->47
        53    >   FE_FREE                                                  $34
  52    54        ASSIGN_OBJ                                               '%0A++%3C%2Ftd%3E%0A++%3Ctd+style%3D%22font-weight%3Abold%3Bwidth%3A50%25%3B%22%3E%0A%0A++++++'
  56    55      > FE_RESET_R                                       $36     !4, ->62
        56    > > FE_FETCH_R                                               $36, !5, ->62
  57    57    >   ASSIGN_OBJ                                               '++++++'
        58        FETCH_DIM_R                                      ~37     !5, 'title'
        59        ASSIGN_OBJ                                               ~37
  58    60        ASSIGN_OBJ                                               '++++++'
  56    61      > JMP                                                      ->56
        62    >   FE_FREE                                                  $36
  59    63        ASSIGN_OBJ                                               '%0A++%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3C%2Ftbody%3E%0A++%3C%2Ftable%3E%0A%0A%3C%2Fdiv%3E'
  65    64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0