3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f4_raw = "Wed Jan 14 00:09:09 BDT 2009"; $f4_formatted = date($format, strtotime($f4_raw)); echo "Format 4: $f4_formatted".PHP_EOL; //$date = DateTime::createFromFormat('i/M/Y', 'Tue/Feb/2013'); //import with the specified format... //echo $date->format('Y-m-d');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jgP6Z
function name:  (null)
number of ops:  14
compiled vars:  !0 = $f4_raw, !1 = $f4_formatted, !2 = $format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Wed+Jan+14+00%3A09%3A09+BDT+2009'
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAR                                                 !2
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    4     9        NOP                                                      
         10        FAST_CONCAT                                      ~7      'Format+4%3A+', !1
         11        CONCAT                                           ~8      ~7, '%0A'
         12        ECHO                                                     ~8
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1398 KiB | 17 Q