3v4l.org

run code in 300+ PHP versions simultaneously
<?php $header = array(); $header[] = new DateTime(); $header[] = new DateTime(); $header[] = new DateTime(); $header[] = new DateTime(); $header[] = new DateTime(); $header[] = new DateTime(); foreach($header as $value) { $value = null; } var_dump($header);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/i6OTR
function name:  (null)
number of ops:  34
compiled vars:  !0 = $header, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $4      'DateTime'
          2        DO_FCALL                                      0          
          3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  $4
    5     5        NEW                                              $7      'DateTime'
          6        DO_FCALL                                      0          
          7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  $7
    6     9        NEW                                              $10     'DateTime'
         10        DO_FCALL                                      0          
         11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  $10
    7    13        NEW                                              $13     'DateTime'
         14        DO_FCALL                                      0          
         15        ASSIGN_DIM                                               !0
         16        OP_DATA                                                  $13
    8    17        NEW                                              $16     'DateTime'
         18        DO_FCALL                                      0          
         19        ASSIGN_DIM                                               !0
         20        OP_DATA                                                  $16
    9    21        NEW                                              $19     'DateTime'
         22        DO_FCALL                                      0          
         23        ASSIGN_DIM                                               !0
         24        OP_DATA                                                  $19
   15    25      > FE_RESET_R                                       $21     !0, ->29
         26    > > FE_FETCH_R                                               $21, !1, ->29
   17    27    >   ASSIGN                                                   !1, null
   15    28      > JMP                                                      ->26
         29    >   FE_FREE                                                  $21
   20    30        INIT_FCALL                                               'var_dump'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.5 ms | 1400 KiB | 15 Q