3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yesterday = date('Y-m-d', strtotime("-1d")); $test = date('Y-m-d', strtotime("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/fTb4q
function name:  (null)
number of ops:  27
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        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '2018-06-28+16%3A03%3A34'
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
    4    16        ECHO                                                     !1
    5    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Y-m-d'
         19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 '-4+days'
         21        DO_ICALL                                         $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                         $10     
         24        ASSIGN                                                   !2, $10
    6    25        ECHO                                                     !2
    7    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.82 ms | 1395 KiB | 17 Q