3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This script make three pull-down menus // for an html form: months, days, years. //Make the months array: $months = array(1 => 'January', 'Febuary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); //Make the days and years arrays: $days = range(1,31); $years = range(2008, 2018); //Make the months pull-down menu: echo '<select name="month">'; foreach ($months as $months => $value){ echo "<option value=\"$months\">$value</option>\n"; } echo '</select>'; //Make the days pull-down menu: echo '<select name="day">'; foreach ($days as $days => $value){ echo "<option value=\"$value\">$value</option>\n"; } echo '</select>'; //Make the years pull-down menu: echo '<select name="year">'; foreach ($years as $years => $value){ echo "<option value=\"$value\">$value</option>\n"; } echo '</select>'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 22
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 35
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 35
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 35
2 jumps found. (Code = 77) Position 1 = 39, Position 2 = 48
Branch analysis from position: 39
2 jumps found. (Code = 78) Position 1 = 40, Position 2 = 48
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
Branch analysis from position: 35
Branch analysis from position: 22
filename:       /in/6srFn
function name:  (null)
number of ops:  51
compiled vars:  !0 = $months, !1 = $days, !2 = $years, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 31
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   11     6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 2008
          8        SEND_VAL                                                 2018
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
   14    11        ECHO                                                     '%3Cselect+name%3D%22month%22%3E'
   15    12      > FE_RESET_R                                       $9      !0, ->22
         13    > > FE_FETCH_R                                       ~10     $9, !3, ->22
         14    >   ASSIGN                                                   !0, ~10
   16    15        ROPE_INIT                                     5  ~13     '%3Coption+value%3D%22'
         16        ROPE_ADD                                      1  ~13     ~13, !0
         17        ROPE_ADD                                      2  ~13     ~13, '%22%3E'
         18        ROPE_ADD                                      3  ~13     ~13, !3
         19        ROPE_END                                      4  ~12     ~13, '%3C%2Foption%3E%0A'
         20        ECHO                                                     ~12
   15    21      > JMP                                                      ->13
         22    >   FE_FREE                                                  $9
   18    23        ECHO                                                     '%3C%2Fselect%3E'
   21    24        ECHO                                                     '%3Cselect+name%3D%22day%22%3E'
   22    25      > FE_RESET_R                                       $16     !1, ->35
         26    > > FE_FETCH_R                                       ~17     $16, !3, ->35
         27    >   ASSIGN                                                   !1, ~17
   23    28        ROPE_INIT                                     5  ~20     '%3Coption+value%3D%22'
         29        ROPE_ADD                                      1  ~20     ~20, !3
         30        ROPE_ADD                                      2  ~20     ~20, '%22%3E'
         31        ROPE_ADD                                      3  ~20     ~20, !3
         32        ROPE_END                                      4  ~19     ~20, '%3C%2Foption%3E%0A'
         33        ECHO                                                     ~19
   22    34      > JMP                                                      ->26
         35    >   FE_FREE                                                  $16
   25    36        ECHO                                                     '%3C%2Fselect%3E'
   28    37        ECHO                                                     '%3Cselect+name%3D%22year%22%3E'
   29    38      > FE_RESET_R                                       $23     !2, ->48
         39    > > FE_FETCH_R                                       ~24     $23, !3, ->48
         40    >   ASSIGN                                                   !2, ~24
   30    41        ROPE_INIT                                     5  ~27     '%3Coption+value%3D%22'
         42        ROPE_ADD                                      1  ~27     ~27, !3
         43        ROPE_ADD                                      2  ~27     ~27, '%22%3E'
         44        ROPE_ADD                                      3  ~27     ~27, !3
         45        ROPE_END                                      4  ~26     ~27, '%3C%2Foption%3E%0A'
         46        ECHO                                                     ~26
   29    47      > JMP                                                      ->39
         48    >   FE_FREE                                                  $23
   32    49        ECHO                                                     '%3C%2Fselect%3E'
   33    50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.15 ms | 1400 KiB | 15 Q