3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(); foreach (range(0, 100) as $r) var_dump($date->format('d-m-Y H:i:s'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/ocmYl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $date, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 100
          6        DO_ICALL                                         $5      
          7      > FE_RESET_R                                       $6      $5, ->16
          8    > > FE_FETCH_R                                               $6, !1, ->16
    6     9    >   INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'format'
         11        SEND_VAL_EX                                              'd-m-Y+H%3Ai%3As'
         12        DO_FCALL                                      0  $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
    5    15      > JMP                                                      ->8
         16    >   FE_FREE                                                  $6
    6    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1395 KiB | 17 Q