3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.68 ms | 1393 KiB | 13 Q