3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array("today", "21 dec", "21 dec 13", "21 dec", "december", "december 2013"); $unixArray = array(); for($i = 0, $size = count($testArray); $i < $size; ++$i) { $testDate = $testArray[$i]; $unixArray[$i] = strtotime($testDate); } echo "ci sono ", count($unixArray); echo " valori \n" ; for($i = 0, $size = count($unixArray); $i < $size; ++$i) { $unixDate = $unixArray[$i]; echo $testArray[$i], " - "; echo $unixDate, " - "; // echo date('l H\:iO',$unixDate), " - "; echo date('r',$unixDate), " - "; echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 24
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 24
Branch analysis from position: 41
Branch analysis from position: 24
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/bjo1d
function name:  (null)
number of ops:  42
compiled vars:  !0 = $testArray, !1 = $unixArray, !2 = $i, !3 = $size, !4 = $testDate, !5 = $unixDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 0
          3        COUNT                                            ~9      !0
          4        ASSIGN                                                   !3, ~9
          5      > JMP                                                      ->14
    5     6    >   FETCH_DIM_R                                      ~11     !0, !2
          7        ASSIGN                                                   !4, ~11
    6     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !4
         10        DO_ICALL                                         $14     
         11        ASSIGN_DIM                                               !1, !2
         12        OP_DATA                                                  $14
    4    13        PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, !3
         15      > JMPNZ                                                    ~16, ->6
    8    16    >   ECHO                                                     'ci+sono+'
         17        COUNT                                            ~17     !1
         18        ECHO                                                     ~17
         19        ECHO                                                     '+valori+%0A'
    9    20        ASSIGN                                                   !2, 0
         21        COUNT                                            ~19     !1
         22        ASSIGN                                                   !3, ~19
         23      > JMP                                                      ->39
   10    24    >   FETCH_DIM_R                                      ~21     !1, !2
         25        ASSIGN                                                   !5, ~21
   11    26        FETCH_DIM_R                                      ~23     !0, !2
         27        ECHO                                                     ~23
         28        ECHO                                                     '+-+'
   12    29        ECHO                                                     !5
         30        ECHO                                                     '+-+'
   14    31        INIT_FCALL                                               'date'
         32        SEND_VAL                                                 'r'
         33        SEND_VAR                                                 !5
         34        DO_ICALL                                         $24     
         35        ECHO                                                     $24
         36        ECHO                                                     '+-+'
   15    37        ECHO                                                     '%0A'
    9    38        PRE_INC                                                  !2
         39    >   IS_SMALLER                                               !2, !3
         40      > JMPNZ                                                    ~26, ->24
   16    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.17 ms | 1392 KiB | 17 Q