3v4l.org

run code in 500+ PHP versions simultaneously
<?php $times = []; $Time = "2018-08-10 17:40:00"; $times["db"] = strtotime($Time); $times["now"] = time(); $times["removed"] = strtotime('- 4 hours'); $times["removedFromDB"] = $times["db"] - 60 * 4; foreach ($times as $key => $time) { echo $key . " - " . date("H:i", $time) . " | "; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 32
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 32
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/lEGF7
function name:  (null)
number of ops:  34
compiled vars:  !0 = $times, !1 = $Time, !2 = $time, !3 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1        ASSIGN                                                       !1, '2018-08-10+17%3A40%3A00'
    6     2        INIT_FCALL                                                   'strtotime'
          3        SEND_VAR                                                     !1
          4        DO_ICALL                                             $7      
          5        ASSIGN_DIM                                                   !0, 'db'
          6        OP_DATA                                                      $7
    7     7        INIT_FCALL                                                   'time'
          8        DO_ICALL                                             $9      
          9        ASSIGN_DIM                                                   !0, 'now'
         10        OP_DATA                                                      $9
    8    11        INIT_FCALL                                                   'strtotime'
         12        SEND_VAL                                                     '-+4+hours'
         13        DO_ICALL                                             $11     
         14        ASSIGN_DIM                                                   !0, 'removed'
         15        OP_DATA                                                      $11
    9    16        FETCH_DIM_R                                          ~13     !0, 'db'
         17        SUB                                                  ~14     ~13, 240
         18        ASSIGN_DIM                                                   !0, 'removedFromDB'
         19        OP_DATA                                                      ~14
   11    20      > FE_RESET_R                                           $15     !0, ->32
         21    > > FE_FETCH_R                                           ~16     $15, !2, ->32
         22    >   ASSIGN                                                       !3, ~16
   12    23        CONCAT                                               ~18     !3, '+-+'
         24        INIT_FCALL                                                   'date'
         25        SEND_VAL                                                     'H%3Ai'
         26        SEND_VAR                                                     !2
         27        DO_ICALL                                             $19     
         28        CONCAT                                               ~20     ~18, $19
         29        CONCAT                                               ~21     ~20, '+%7C+'
         30        ECHO                                                         ~21
   11    31      > JMP                                                          ->21
         32    >   FE_FREE                                                      $15
   13    33      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.16 ms | 1387 KiB | 16 Q