3v4l.org

run code in 300+ PHP versions simultaneously
<?php $AkaraB=3; $BkaraA=4; $AkaraBnoZikan=2; $BkaraAnoZikan=3; $AbinString='1 5 7'; $BbinString='3 8 12 13'; $ouhuku = 0; $Abin = explode(' ', $AbinString); $Bbin = explode(' ', $BbinString); $now = 0; $end = false; while(true) { foreach ($Abin as $key => $value) { if($now <= $value){ $now = $value; $Abin = array_slice($Abin,$key+=1); break; }else { $end = true; } } if($end) break; $now += $AkaraBnoZikan; if ($now > 24) break; foreach ($Bbin as $key => $value) { if($now <= $value) { $now = $value; $Bbin = array_slice($Bbin, $key+=1); $break; }else { $end =true; } } if($end) break; $now += $BkaraAnoZikan; if ($now > 24) break; $ouhuku++; } echo $ouhuku . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 67
Branch analysis from position: 67
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 20
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 37
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 37
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 34
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 44
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
Branch analysis from position: 44
2 jumps found. (Code = 77) Position 1 = 45, Position 2 = 59
Branch analysis from position: 45
2 jumps found. (Code = 78) Position 1 = 46, Position 2 = 59
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 57
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
Branch analysis from position: 59
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 62
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
Branch analysis from position: 62
2 jumps found. (Code = 43) Position 1 = 65, Position 2 = 66
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
Branch analysis from position: 66
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 20
Branch analysis from position: 68
Branch analysis from position: 20
Branch analysis from position: 59
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 37
Branch analysis from position: 37
filename:       /in/1Ble2
function name:  (null)
number of ops:  71
compiled vars:  !0 = $AkaraB, !1 = $BkaraA, !2 = $AkaraBnoZikan, !3 = $BkaraAnoZikan, !4 = $AbinString, !5 = $BbinString, !6 = $ouhuku, !7 = $Abin, !8 = $Bbin, !9 = $now, !10 = $end, !11 = $value, !12 = $key, !13 = $break
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3
    3     1        ASSIGN                                                   !1, 4
    4     2        ASSIGN                                                   !2, 2
    5     3        ASSIGN                                                   !3, 3
    6     4        ASSIGN                                                   !4, '1+5+7'
    7     5        ASSIGN                                                   !5, '3+8+12+13'
    9     6        ASSIGN                                                   !6, 0
   10     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '+'
          9        SEND_VAR                                                 !4
         10        DO_ICALL                                         $21     
         11        ASSIGN                                                   !7, $21
   11    12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '+'
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                         $23     
         16        ASSIGN                                                   !8, $23
   12    17        ASSIGN                                                   !9, 0
   13    18        ASSIGN                                                   !10, <false>
   14    19      > JMP                                                      ->67
   16    20    > > FE_RESET_R                                       $27     !7, ->37
         21    > > FE_FETCH_R                                       ~28     $27, !11, ->37
         22    >   ASSIGN                                                   !12, ~28
   17    23        IS_SMALLER_OR_EQUAL                                      !9, !11
         24      > JMPZ                                                     ~30, ->34
   18    25    >   ASSIGN                                                   !9, !11
   19    26        INIT_FCALL                                               'array_slice'
         27        SEND_VAR                                                 !7
         28        ASSIGN_OP                                     1  ~32     !12, 1
         29        SEND_VAL                                                 ~32
         30        DO_ICALL                                         $33     
         31        ASSIGN                                                   !7, $33
   20    32      > JMP                                                      ->37
         33*       JMP                                                      ->36
   22    34    >   FETCH_CONSTANT                                   ~35     '%E3%80%80true'
         35        ASSIGN                                                   !10, ~35
   16    36      > JMP                                                      ->21
         37    >   FE_FREE                                                  $27
   25    38      > JMPZ                                                     !10, ->40
         39    > > JMP                                                      ->68
   26    40    >   ASSIGN_OP                                     1          !9, !2
   27    41        IS_SMALLER                                               24, !9
         42      > JMPZ                                                     ~38, ->44
         43    > > JMP                                                      ->68
   29    44    > > FE_RESET_R                                       $39     !8, ->59
         45    > > FE_FETCH_R                                       ~40     $39, !11, ->59
         46    >   ASSIGN                                                   !12, ~40
   30    47        IS_SMALLER_OR_EQUAL                                      !9, !11
         48      > JMPZ                                                     ~42, ->57
   31    49    >   ASSIGN                                                   !9, !11
   32    50        INIT_FCALL                                               'array_slice'
         51        SEND_VAR                                                 !8
         52        ASSIGN_OP                                     1  ~44     !12, 1
         53        SEND_VAL                                                 ~44
         54        DO_ICALL                                         $45     
         55        ASSIGN                                                   !8, $45
   33    56      > JMP                                                      ->58
   35    57    >   ASSIGN                                                   !10, <true>
   29    58    > > JMP                                                      ->45
         59    >   FE_FREE                                                  $39
   38    60      > JMPZ                                                     !10, ->62
         61    > > JMP                                                      ->68
   39    62    >   ASSIGN_OP                                     1          !9, !3
   40    63        IS_SMALLER                                               24, !9
         64      > JMPZ                                                     ~49, ->66
         65    > > JMP                                                      ->68
   41    66    >   PRE_INC                                                  !6
   14    67    > > JMPNZ                                                    <true>, ->20
   45    68    >   CONCAT                                           ~51     !6, '%0A'
         69        ECHO                                                     ~51
         70      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.26 ms | 1404 KiB | 17 Q