3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array("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',strtotime($testDate)), "\n"; echo date('r',strtotime($testDate)), "\n"; 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 = 46
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 20
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 20
Branch analysis from position: 48
Branch analysis from position: 20
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/7PENS
function name:  (null)
number of ops:  49
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    >   ASSIGN                                                   !2, 0
         17        COUNT                                            ~18     !1
         18        ASSIGN                                                   !3, ~18
         19      > JMP                                                      ->46
    9    20    >   FETCH_DIM_R                                      ~20     !1, !2
         21        ASSIGN                                                   !5, ~20
   10    22        ECHO                                                     !4
         23        ECHO                                                     '%0A'
   11    24        ECHO                                                     !5
         25        ECHO                                                     '%0A'
   12    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'l+H%5C%3AiO'
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                         $22     
         31        SEND_VAR                                                 $22
         32        DO_ICALL                                         $23     
         33        ECHO                                                     $23
         34        ECHO                                                     '%0A'
   13    35        INIT_FCALL                                               'date'
         36        SEND_VAL                                                 'r'
         37        INIT_FCALL                                               'strtotime'
         38        SEND_VAR                                                 !4
         39        DO_ICALL                                         $24     
         40        SEND_VAR                                                 $24
         41        DO_ICALL                                         $25     
         42        ECHO                                                     $25
         43        ECHO                                                     '%0A'
   14    44        ECHO                                                     '%0A'
    8    45        PRE_INC                                                  !2
         46    >   IS_SMALLER                                               !2, !3
         47      > JMPNZ                                                    ~27, ->20
   15    48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.37 ms | 1400 KiB | 17 Q