3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = $_REQUEST['hour']; function createHours($id='hours_select', $selected=null) { /*** range of hours ***/ $r = array("00","01","02","03","04","05","06","07","08","09",10,11,12,13,14,15,16,17,18,19,20,21,22,23); $m = array("00",30); $select .= "<select>"; foreach ($r as $hour) { foreach($m as $min) { $select .= '<option value="'.$hour.':'.$min.'">'.$hour.':'.$min.'</option>'; } } $select .= '</select>'; return $select; } echo createhours(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qpHMH
function name:  (null)
number of ops:  7
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   FETCH_R                      global              ~1      '_REQUEST'
          1        FETCH_DIM_R                                      ~2      ~1, 'hour'
          2        ASSIGN                                                   !0, ~2
   23     3        INIT_FCALL                                               'createhours'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
   25     6      > RETURN                                                   1

Function createhours:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 19
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/qpHMH
function name:  createHours
number of ops:  25
compiled vars:  !0 = $id, !1 = $selected, !2 = $r, !3 = $m, !4 = $select, !5 = $hour, !6 = $min
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      'hours_select'
          1        RECV_INIT                                        !1      null
    6     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, <array>
    9     4        ASSIGN_OP                                     8          !4, '%3Cselect%3E'
   10     5      > FE_RESET_R                                       $10     !2, ->21
          6    > > FE_FETCH_R                                               $10, !5, ->21
   12     7    > > FE_RESET_R                                       $11     !3, ->19
          8    > > FE_FETCH_R                                               $11, !6, ->19
   15     9    >   CONCAT                                           ~12     '%3Coption+value%3D%22', !5
         10        CONCAT                                           ~13     ~12, '%3A'
         11        CONCAT                                           ~14     ~13, !6
         12        CONCAT                                           ~15     ~14, '%22%3E'
         13        CONCAT                                           ~16     ~15, !5
         14        CONCAT                                           ~17     ~16, '%3A'
         15        CONCAT                                           ~18     ~17, !6
         16        CONCAT                                           ~19     ~18, '%3C%2Foption%3E'
         17        ASSIGN_OP                                     8          !4, ~19
   12    18      > JMP                                                      ->8
         19    >   FE_FREE                                                  $11
   10    20      > JMP                                                      ->6
         21    >   FE_FREE                                                  $10
   19    22        ASSIGN_OP                                     8          !4, '%3C%2Fselect%3E'
   20    23      > RETURN                                                   !4
   21    24*     > RETURN                                                   null

End of function createhours

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.01 ms | 1403 KiB | 14 Q