3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = "j-M-y H:i:s"; $f4_raw = "Wed Jan 14 00:09:09 BDT 2009"; $f4_formatted = date($format, strtotime($f4_raw)); echo "Format 4: $f4_formatted"; //$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/23At4
function name:  (null)
number of ops:  14
compiled vars:  !0 = $format, !1 = $f4_raw, !2 = $f4_formatted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'j-M-y+H%3Ai%3As'
    3     1        ASSIGN                                                   !1, 'Wed+Jan+14+00%3A09%3A09+BDT+2009'
    4     2        INIT_FCALL                                               'date'
          3        SEND_VAR                                                 !0
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    5    10        NOP                                                      
         11        FAST_CONCAT                                      ~8      'Format+4%3A+', !2
         12        ECHO                                                     ~8
    7    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.36 ms | 1394 KiB | 17 Q