3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['created'] = "2022-06-18 15:48:54"; $created = date('Y-m-d', strtotime($_POST['created'])); echo $created;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r8a9q
function name:  (null)
number of ops:  15
compiled vars:  !0 = $created
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $1      '_POST'
          1        ASSIGN_DIM                                               $1, 'created'
          2        OP_DATA                                                  '2022-06-18+15%3A48%3A54'
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y-m-d'
          5        INIT_FCALL                                               'strtotime'
          6        FETCH_R                      global              ~3      '_POST'
          7        FETCH_DIM_R                                      ~4      ~3, 'created'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !0, $6
    4    13        ECHO                                                     !0
    5    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.49 ms | 999 KiB | 15 Q