3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); $yes = 0; for ($i = 0; $i < 12; ++$i) { $result = strtotime(strtolower($months[$i])); if ($result != $months[$i]) { $correct = "no"; } else { $correct = "yes"; $yes++; } echo $correct . " - " . $result . "\n"; } echo "\n" . $yes . " / 12 correct months."; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
Branch analysis from position: 4
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
Branch analysis from position: 4
filename:       /in/ehbtH
function name:  (null)
number of ops:  30
compiled vars:  !0 = $months, !1 = $yes, !2 = $i, !3 = $result, !4 = $correct
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->24
    6     4    >   INIT_FCALL                                               'strtotime'
          5        INIT_FCALL                                               'strtolower'
          6        FETCH_DIM_R                                      ~8      !0, !2
          7        SEND_VAL                                                 ~8
          8        DO_ICALL                                         $9      
          9        SEND_VAR                                                 $9
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !3, $10
    8    12        FETCH_DIM_R                                      ~12     !0, !2
         13        IS_NOT_EQUAL                                             !3, ~12
         14      > JMPZ                                                     ~13, ->17
    9    15    >   ASSIGN                                                   !4, 'no'
         16      > JMP                                                      ->19
   11    17    >   ASSIGN                                                   !4, 'yes'
   12    18        PRE_INC                                                  !1
   14    19    >   CONCAT                                           ~17     !4, '+-+'
         20        CONCAT                                           ~18     ~17, !3
         21        CONCAT                                           ~19     ~18, '%0A'
         22        ECHO                                                     ~19
    5    23        PRE_INC                                                  !2
         24    >   IS_SMALLER                                               !2, 12
         25      > JMPNZ                                                    ~21, ->4
   16    26    >   CONCAT                                           ~22     '%0A', !1
         27        CONCAT                                           ~23     ~22, '+%2F+12+correct+months.'
         28        ECHO                                                     ~23
   17    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.46 ms | 1396 KiB | 17 Q