3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array(-1, 0, 1, December, "February 2014", "now"); $unixArray = array(); for($i = 0, $size = count($testArray); $i < $size; ++$i) { $testDate = $testArray[$i]; $unixArray[$i] = strtotime($testDate); } for($i = 0, $size = count($unixArray); $i < $size; ++$i) { $unixDate = $unixArray[$i]; echo $testDate, "\n"; // echo $unixDate, "\n"; echo date('l H\:iO',$unixDate), "\n"; // echo date('r',$unixDate), "\n"; echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 13
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 27
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 27
Branch analysis from position: 41
Branch analysis from position: 27
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 13
Branch analysis from position: 23
Branch analysis from position: 13
filename:       /in/qPsb7
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 >   INIT_ARRAY                                       ~6      -1
          1        ADD_ARRAY_ELEMENT                                ~6      0
          2        ADD_ARRAY_ELEMENT                                ~6      1
          3        FETCH_CONSTANT                                   ~7      'December'
          4        ADD_ARRAY_ELEMENT                                ~6      ~7
          5        ADD_ARRAY_ELEMENT                                ~6      'February+2014'
          6        ADD_ARRAY_ELEMENT                                ~6      'now'
          7        ASSIGN                                                   !0, ~6
    3     8        ASSIGN                                                   !1, <array>
    4     9        ASSIGN                                                   !2, 0
         10        COUNT                                            ~11     !0
         11        ASSIGN                                                   !3, ~11
         12      > JMP                                                      ->21
    5    13    >   FETCH_DIM_R                                      ~13     !0, !2
         14        ASSIGN                                                   !4, ~13
    6    15        INIT_FCALL                                               'strtotime'
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                         $16     
         18        ASSIGN_DIM                                               !1, !2
         19        OP_DATA                                                  $16
    4    20        PRE_INC                                                  !2
         21    >   IS_SMALLER                                               !2, !3
         22      > JMPNZ                                                    ~18, ->13
    8    23    >   ASSIGN                                                   !2, 0
         24        COUNT                                            ~20     !1
         25        ASSIGN                                                   !3, ~20
         26      > JMP                                                      ->39
    9    27    >   FETCH_DIM_R                                      ~22     !1, !2
         28        ASSIGN                                                   !5, ~22
   10    29        ECHO                                                     !4
         30        ECHO                                                     '%0A'
   12    31        INIT_FCALL                                               'date'
         32        SEND_VAL                                                 'l+H%5C%3AiO'
         33        SEND_VAR                                                 !5
         34        DO_ICALL                                         $24     
         35        ECHO                                                     $24
         36        ECHO                                                     '%0A'
   14    37        ECHO                                                     '%0A'
    8    38        PRE_INC                                                  !2
         39    >   IS_SMALLER                                               !2, !3
         40      > JMPNZ                                                    ~26, ->27
   15    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.31 ms | 1400 KiB | 17 Q