3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sec = 1; $getcurrentDate = date("Y-m-d H:i:s", time()); $finaldate = strtotime( "$getcurrentDate + ".$sec."second"); echo "Start:".date("Y-m-d H:i:s",$getcurrentDate); echo "Final:".date("Y-m-d H:i:s",$finaldate); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ojYtp
function name:  (null)
number of ops:  29
compiled vars:  !0 = $sec, !1 = $getcurrentDate, !2 = $finaldate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_FCALL                                               'strtotime'
          9        NOP                                                      
         10        FAST_CONCAT                                      ~7      !1, '+%2B+'
         11        CONCAT                                           ~8      ~7, !0
         12        CONCAT                                           ~9      ~8, 'second'
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !2, $10
    7    16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $12     
         20        CONCAT                                           ~13     'Start%3A', $12
         21        ECHO                                                     ~13
    8    22        INIT_FCALL                                               'date'
         23        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $14     
         26        CONCAT                                           ~15     'Final%3A', $14
         27        ECHO                                                     ~15
   10    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.94 ms | 1387 KiB | 19 Q