3v4l.org

run code in 300+ PHP versions simultaneously
<?php $char1 = '!'; $char2 = '/'; $start = ord($char1); $stop = ord($char2); $set = array(); for($i=$start; $i < $stop; ($start > $stop? $i++: $i--)){ $set[] = chr($i); } print_r($set);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 13
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 13
Branch analysis from position: 28
Branch analysis from position: 13
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 13
Branch analysis from position: 28
Branch analysis from position: 13
filename:       /in/qqXnN
function name:  (null)
number of ops:  32
compiled vars:  !0 = $char1, !1 = $char2, !2 = $start, !3 = $stop, !4 = $set, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%21'
    4     1        ASSIGN                                                   !1, '%2F'
    5     2        INIT_FCALL                                               'ord'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !2, $8
    6     6        INIT_FCALL                                               'ord'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !3, $10
    7    10        ASSIGN                                                   !4, <array>
    8    11        ASSIGN                                                   !5, !2
         12      > JMP                                                      ->26
    9    13    >   INIT_FCALL                                               'chr'
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                         $15     
         16        ASSIGN_DIM                                               !4
         17        OP_DATA                                                  $15
    8    18        IS_SMALLER                                               !3, !2
         19      > JMPZ                                                     ~16, ->23
         20    >   POST_INC                                         ~17     !5
         21        QM_ASSIGN                                        ~18     ~17
         22      > JMP                                                      ->25
         23    >   POST_DEC                                         ~19     !5
         24        QM_ASSIGN                                        ~18     ~19
         25    >   FREE                                                     ~18
         26    >   IS_SMALLER                                               !5, !3
         27      > JMPNZ                                                    ~20, ->13
   11    28    >   INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.99 ms | 1396 KiB | 19 Q