3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "2014-05-21 21:50:51"; $timestamp = strtotime($date); print $date."\n"; print date("Y-m-d H:i:s", $timestamp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQFNU
function name:  (null)
number of ops:  13
compiled vars:  !0 = $date, !1 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-05-21+21%3A50%3A51'
    4     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        CONCAT                                           ~5      !0, '%0A'
          6        ECHO                                                     ~5
    7     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.69 ms | 1394 KiB | 17 Q