3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = "Y/m/d H:i:s"; echo date($format, strtotime('2014/09/26 23:59:59')); echo "\n\r"; echo date($format); echo "\n\r"; echo date(strtotime('2014/09/26 23:59:59'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f8gn3
function name:  (null)
number of ops:  23
compiled vars:  !0 = $format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Y%2Fm%2Fd+H%3Ai%3As'
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '2014%2F09%2F26+23%3A59%3A59'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    4     9        ECHO                                                     '%0A%0D'
    6    10        INIT_FCALL                                               'date'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
    7    14        ECHO                                                     '%0A%0D'
    8    15        INIT_FCALL                                               'date'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '2014%2F09%2F26+23%3A59%3A59'
         18        DO_ICALL                                         $5      
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                         $6      
         21        ECHO                                                     $6
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1395 KiB | 17 Q