3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'Wednesday, November 11'; $time = strtotime( $string ); echo time() . "\r\n"; echo date( 'Y-m-d h:i A', time() ) . "\r\n"; echo $time . "\r\n"; echo date( 'Y-m-d h:i A', $time );
based on qaTtA
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/ts2sf
function name:  (null)
number of ops:  25
compiled vars:  !0 = $string, !1 = $time
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'Wednesday%2C+November+11'
   4     1        INIT_FCALL                                               'strtotime'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                         $3      
         4        ASSIGN                                                   !1, $3
   5     5        INIT_FCALL                                               'time'
         6        DO_ICALL                                         $5      
         7        CONCAT                                           ~6      $5, '%0D%0A'
         8        ECHO                                                     ~6
   6     9        INIT_FCALL                                               'date'
        10        SEND_VAL                                                 'Y-m-d+h%3Ai+A'
        11        INIT_FCALL                                               'time'
        12        DO_ICALL                                         $7      
        13        SEND_VAR                                                 $7
        14        DO_ICALL                                         $8      
        15        CONCAT                                           ~9      $8, '%0D%0A'
        16        ECHO                                                     ~9
   7    17        CONCAT                                           ~10     !1, '%0D%0A'
        18        ECHO                                                     ~10
   8    19        INIT_FCALL                                               'date'
        20        SEND_VAL                                                 'Y-m-d+h%3Ai+A'
        21        SEND_VAR                                                 !1
        22        DO_ICALL                                         $11     
        23        ECHO                                                     $11
        24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0