3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = -31; $i < 100; ++$i) { echo $i, "\t",DateTime::createFromFormat('z', $i)->format('Y-m-d'), "\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 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/QpnWO
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, -31
          1      > JMP                                                      ->14
    3     2    >   ECHO                                                     !0
          3        ECHO                                                     '%09'
          4        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          5        SEND_VAL                                                 'z'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0  $2      
          8        INIT_METHOD_CALL                                         $2, 'format'
          9        SEND_VAL_EX                                              'Y-m-d'
         10        DO_FCALL                                      0  $3      
         11        ECHO                                                     $3
         12        ECHO                                                     '%0A'
    2    13        PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 100
         15      > JMPNZ                                                    ~5, ->2
    4    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.57 ms | 1393 KiB | 13 Q