3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $newsPiece['pages'] = 'A15'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?> <?php $newsPiece['pages'] = '15-38'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?> <?php $newsPiece['pages'] = '15B'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?> <?php $newsPiece['pages'] = 'A15B'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
Jump found. Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
Jump found. Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
Jump found. Position 1 = 32, Position 2 = 35
Branch analysis from position: 32
Jump found. Position 1 = -2
Branch analysis from position: 35
Branch analysis from position: 26
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/vIeUf
function name:  (null)
number of ops:  36
compiled vars:  !0 = $newsPiece
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN_DIM                                               !0, 'pages'
         1        OP_DATA                                                  'A15'
   3     2        FETCH_DIM_R                                      $2      !0, 'pages'
         3        CAST                                          4  ~3      $2
         4      > JMPZ                                                     ~3, ->8
         5    >   ECHO                                                     '+'
         6        FETCH_DIM_R                                      $4      !0, 'pages'
         7        ECHO                                                     $4
   5     8    >   ECHO                                                     '%0A'
   6     9        ASSIGN_DIM                                               !0, 'pages'
        10        OP_DATA                                                  '15-38'
   7    11        FETCH_DIM_R                                      $6      !0, 'pages'
        12        CAST                                          4  ~7      $6
        13      > JMPZ                                                     ~7, ->17
        14    >   ECHO                                                     '+'
        15        FETCH_DIM_R                                      $8      !0, 'pages'
        16        ECHO                                                     $8
   9    17    >   ECHO                                                     '%0A'
  10    18        ASSIGN_DIM                                               !0, 'pages'
        19        OP_DATA                                                  '15B'
  11    20        FETCH_DIM_R                                      $10     !0, 'pages'
        21        CAST                                          4  ~11     $10
        22      > JMPZ                                                     ~11, ->26
        23    >   ECHO                                                     '+'
        24        FETCH_DIM_R                                      $12     !0, 'pages'
        25        ECHO                                                     $12
  14    26    >   ECHO                                                     '%0A%0A'
  15    27        ASSIGN_DIM                                               !0, 'pages'
        28        OP_DATA                                                  'A15B'
  16    29        FETCH_DIM_R                                      $14     !0, 'pages'
        30        CAST                                          4  ~15     $14
        31      > JMPZ                                                     ~15, ->35
        32    >   ECHO                                                     '+'
        33        FETCH_DIM_R                                      $16     !0, 'pages'
        34        ECHO                                                     $16
        35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0