3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 30; $date = strtotime(date("YmWjis")); $dote = strtotime(date("YmWjis")) + $time; // ($time is set earlier and is 30 seconds) echo "wait " . $date = $date - $dote . " seconds until next visit";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LBIXu
function name:  (null)
number of ops:  22
compiled vars:  !0 = $time, !1 = $date, !2 = $dote
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 30
    3     1        INIT_FCALL                                               'strtotime'
          2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'YmWjis'
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_FCALL                                               'strtotime'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'YmWjis'
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                         $8      
         14        ADD                                              ~9      $8, !0
         15        ASSIGN                                                   !2, ~9
    5    16        SUB                                              ~11     !1, !2
         17        CONCAT                                           ~12     ~11, '+seconds+until+next+visit'
         18        ASSIGN                                           ~13     !1, ~12
         19        CONCAT                                           ~14     'wait+', ~13
         20        ECHO                                                     ~14
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.51 ms | 1395 KiB | 17 Q