3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test () { for ($x=2013,$y=01,$z=01; $x<2038; $x++,$y++,$z++) { echo date("ymd") . ': ' . dechex(date("ymd")) . "\n"; } } echo test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aYYfc
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
Branch analysis from position: 4
filename:       /in/aYYfc
function name:  test
number of ops:  23
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2013
          1        ASSIGN                                                   !1, 1
          2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->20
    4     4    >   INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'ymd'
          6        DO_ICALL                                         $6      
          7        CONCAT                                           ~7      $6, '%3A+'
          8        INIT_FCALL                                               'dechex'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'ymd'
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                         $9      
         14        CONCAT                                           ~10     ~7, $9
         15        CONCAT                                           ~11     ~10, '%0A'
         16        ECHO                                                     ~11
    3    17        PRE_INC                                                  !0
         18        PRE_INC                                                  !1
         19        PRE_INC                                                  !2
         20    >   IS_SMALLER                                               !0, 2038
         21      > JMPNZ                                                    ~15, ->4
    7    22    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.29 ms | 1390 KiB | 18 Q