3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array(-1, 0, 1, "Feb"); for($i = 0, $size = count($testArray); $i < $size; ++$i) { $testDate = $testArray[$i]; echo $testDate; echo strtotime($testDate), "\n"; echo date('r',strtotime($testDate)), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 5
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 5
Branch analysis from position: 25
Branch analysis from position: 5
filename:       /in/hlZ3e
function name:  (null)
number of ops:  26
compiled vars:  !0 = $testArray, !1 = $i, !2 = $size, !3 = $testDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2        COUNT                                            ~6      !0
          3        ASSIGN                                                   !2, ~6
          4      > JMP                                                      ->23
    4     5    >   FETCH_DIM_R                                      ~8      !0, !1
          6        ASSIGN                                                   !3, ~8
    5     7        ECHO                                                     !3
    6     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                         $10     
         11        ECHO                                                     $10
         12        ECHO                                                     '%0A'
    7    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'r'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $11     
         18        SEND_VAR                                                 $11
         19        DO_ICALL                                         $12     
         20        ECHO                                                     $12
         21        ECHO                                                     '%0A'
    3    22        PRE_INC                                                  !1
         23    >   IS_SMALLER                                               !1, !2
         24      > JMPNZ                                                    ~14, ->5
    8    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.02 ms | 1387 KiB | 17 Q