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 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 5
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 5
Branch analysis from position: 26
Branch analysis from position: 5
filename:       /in/rfa5e
function name:  (null)
number of ops:  27
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                                                      ->24
    4     5    >   FETCH_CONSTANT                                   ~8      'i'
          6        FETCH_DIM_R                                      ~9      !0, ~8
          7        ASSIGN                                                   !3, ~9
    5     8        ECHO                                                     !3
    6     9        INIT_FCALL                                               'strtotime'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $11     
         12        ECHO                                                     $11
         13        ECHO                                                     '%0A'
    7    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'r'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $12     
         19        SEND_VAR                                                 $12
         20        DO_ICALL                                         $13     
         21        ECHO                                                     $13
         22        ECHO                                                     '%0A'
    3    23        PRE_INC                                                  !1
         24    >   IS_SMALLER                                               !1, !2
         25      > JMPNZ                                                    ~15, ->5
    8    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.42 ms | 1395 KiB | 17 Q