3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array(); foreach (range(0,23) as $fullhour) { $parthour = $fullhour > 12 ? $fullhour - 12 : $fullhour; $sufix = $fullhour > 11 ? " pm" : " am"; $options["$fullhour:00"] = $parthour.":00".$sufix; $options["$fullhour:30"] = $parthour.":30".$sufix; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 33
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 33
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
Branch analysis from position: 18
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/teNNq
function name:  (null)
number of ops:  35
compiled vars:  !0 = $options, !1 = $fullhour, !2 = $parthour, !3 = $sufix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, <array>
    2     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 23
          4        DO_ICALL                                         $5      
          5      > FE_RESET_R                                       $6      $5, ->33
          6    > > FE_FETCH_R                                               $6, !1, ->33
    4     7    >   IS_SMALLER                                               12, !1
          8      > JMPZ                                                     ~7, ->12
          9    >   SUB                                              ~8      !1, 12
         10        QM_ASSIGN                                        ~9      ~8
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~9      !1
         13    >   ASSIGN                                                   !2, ~9
    5    14        IS_SMALLER                                               11, !1
         15      > JMPZ                                                     ~11, ->18
         16    >   QM_ASSIGN                                        ~12     '+pm'
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~12     '+am'
         19    >   ASSIGN                                                   !3, ~12
    7    20        NOP                                                      
         21        FAST_CONCAT                                      ~14     !1, '%3A00'
         22        CONCAT                                           ~16     !2, '%3A00'
         23        CONCAT                                           ~17     ~16, !3
         24        ASSIGN_DIM                                               !0, ~14
         25        OP_DATA                                                  ~17
    8    26        NOP                                                      
         27        FAST_CONCAT                                      ~18     !1, '%3A30'
         28        CONCAT                                           ~20     !2, '%3A30'
         29        CONCAT                                           ~21     ~20, !3
         30        ASSIGN_DIM                                               !0, ~18
         31        OP_DATA                                                  ~21
    2    32      > JMP                                                      ->6
         33    >   FE_FREE                                                  $6
   10    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.69 ms | 1400 KiB | 15 Q