3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strtotime('03.02.2014'); echo time(); $today = getdate(); print_r($today); $format = '%d/%m/%Y %H:%M:%S'; $strf = strftime($format); echo "$strf\n"; print_r(strptime($strf, $format));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lv205
function name:  (null)
number of ops:  29
compiled vars:  !0 = $today, !1 = $format, !2 = $strf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '03.02.2014'
          2        DO_ICALL                                         $3      
          3        ECHO                                                     $3
    3     4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
    4     7        INIT_FCALL                                               'getdate'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    5    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    7    13        ASSIGN                                                   !1, '%25d%2F%25m%2F%25Y+%25H%3A%25M%3A%25S'
    8    14        INIT_FCALL                                               'strftime'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !2, $9
   10    18        NOP                                                      
         19        FAST_CONCAT                                      ~11     !2, '%0A'
         20        ECHO                                                     ~11
   12    21        INIT_FCALL                                               'print_r'
         22        INIT_FCALL                                               'strptime'
         23        SEND_VAR                                                 !2
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                         $12     
         26        SEND_VAR                                                 $12
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.29 ms | 1395 KiB | 25 Q