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:".$getcurrentDate."\n"; 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/4i2em
function name:  (null)
number of ops:  26
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        CONCAT                                           ~12     'Start%3A', !1
         17        CONCAT                                           ~13     ~12, '%0A'
         18        ECHO                                                     ~13
    8    19        INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $14     
         23        CONCAT                                           ~15     'Final%3A', $14
         24        ECHO                                                     ~15
   10    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.93 ms | 1395 KiB | 19 Q