3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date_create('now'); $delay = rand(1,3); date_modify($date, '+'.$delay.' day'); echo date_format($date, 'Y-m-d');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u9L32
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date, !1 = $delay
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 'now'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'rand'
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    5     9        INIT_FCALL                                               'date_modify'
         10        SEND_VAR                                                 !0
         11        CONCAT                                           ~6      '%2B', !1
         12        CONCAT                                           ~7      ~6, '+day'
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'date_format'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 'Y-m-d'
         18        DO_ICALL                                         $9      
         19        ECHO                                                     $9
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.25 ms | 1399 KiB | 21 Q