3v4l.org

run code in 300+ PHP versions simultaneously
<?php $da='2014-04-26'; $date = strtotime($da .' -8 days'); $final=date('Y-m-d', $date); echo $final; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ODoW1
function name:  (null)
number of ops:  13
compiled vars:  !0 = $da, !1 = $date, !2 = $final
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-04-26'
    4     1        INIT_FCALL                                               'strtotime'
          2        CONCAT                                           ~4      !0, '+-8+days'
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'Y-m-d'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
    7    11        ECHO                                                     !2
    8    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.27 ms | 1385 KiB | 17 Q