3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.7 ms | 1387 KiB | 17 Q