3v4l.org

run code in 300+ PHP versions simultaneously
<?php print str_replace('/', '-', '10/09/2010'); print date('d/m/Y', strtotime(date('d-m-Y').' + 30 days'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8253X
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 '%2F'
          2        SEND_VAL                                                 '-'
          3        SEND_VAL                                                 '10%2F09%2F2010'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
    4     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'd%2Fm%2FY'
          8        INIT_FCALL                                               'strtotime'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'd-m-Y'
         11        DO_ICALL                                         $1      
         12        CONCAT                                           ~2      $1, '+%2B+30+days'
         13        SEND_VAL                                                 ~2
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                         $4      
         17        ECHO                                                     $4
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.11 ms | 1394 KiB | 19 Q