3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.6 ms | 1385 KiB | 19 Q