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 $finaldate; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eL0YF
function name:  (null)
number of ops:  17
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        CONCAT                                           ~7      !1, '%2B'
         10        CONCAT                                           ~8      ~7, !0
         11        CONCAT                                           ~9      ~8, '+second'
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !2, $10
    5    15        ECHO                                                     !2
    7    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1394 KiB | 19 Q