3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.99 ms | 1400 KiB | 17 Q