3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = str_replace("/", ".", '2018-01-01');// replace the / with . $date = date("Y-m-d", strtotime($date)); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i1Bvo
function name:  (null)
number of ops:  16
compiled vars:  !0 = $date
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                                                 '2018-01-01'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'Y-m-d'
          8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                         $4      
         13        ASSIGN                                                   !0, $4
    5    14        ECHO                                                     !0
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.92 ms | 1011 KiB | 16 Q