3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yesterday = date('Y-m-d', strtotime("-1d")); $test = date('Y-m-d', "2018-06-28 16:03:34"); echo $test; $test2 = date('Y-m-d', strtotime("-4 days")); echo $test2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTCqC
function name:  (null)
number of ops:  24
compiled vars:  !0 = $yesterday, !1 = $test, !2 = $test2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '-1d'
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    3     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d'
         10        SEND_VAL                                                 '2018-06-28+16%3A03%3A34'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    4    13        ECHO                                                     !1
    5    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'Y-m-d'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '-4+days'
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        DO_ICALL                                         $9      
         21        ASSIGN                                                   !2, $9
    6    22        ECHO                                                     !2
    7    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.11 ms | 1399 KiB | 17 Q