3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentmonth = date('m');//good one $month = 0; for ($int=1; $int<$currentmonth; $int++) { $mth=date("M", mktime(0, 0, 0, $int)); echo $mth; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 7
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 7
Branch analysis from position: 22
Branch analysis from position: 7
filename:       /in/2SHCO
function name:  (null)
number of ops:  23
compiled vars:  !0 = $currentmonth, !1 = $month, !2 = $int, !3 = $mth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        ASSIGN                                                   !1, 0
    5     5        ASSIGN                                                   !2, 1
          6      > JMP                                                      ->20
    7     7    >   INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'M'
          9        INIT_FCALL                                               'mktime'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 0
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !3, $9
    8    18        ECHO                                                     !3
    5    19        PRE_INC                                                  !2
         20    >   IS_SMALLER                                               !2, !0
         21      > JMPNZ                                                    ~12, ->7
    9    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.66 ms | 1395 KiB | 17 Q