3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.9 ms | 1395 KiB | 17 Q