3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=0;$i<1000;$i++) { echo $i." "; } $a = new DateTime('0000-01-01'); echo $a->format('j M Y \i\s \a l');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
Branch analysis from position: 2
filename:       /in/HW69G
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->5
    4     2    >   CONCAT                                           ~3      !0, '+'
          3        ECHO                                                     ~3
    2     4        PRE_INC                                                  !0
          5    >   IS_SMALLER                                               !0, 1000
          6      > JMPNZ                                                    ~5, ->2
    6     7    >   NEW                                              $6      'DateTime'
          8        SEND_VAL_EX                                              '0000-01-01'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    7    11        INIT_METHOD_CALL                                         !1, 'format'
         12        SEND_VAL_EX                                              'j+M+Y+%5Ci%5Cs+%5Ca+l'
         13        DO_FCALL                                      0  $9      
         14        ECHO                                                     $9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.07 ms | 1394 KiB | 13 Q