3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.29 ms | 1395 KiB | 21 Q