3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d30= strtotime("2017-06-30"); Echo $d30 ."\n"; Echo date("Y-m-d", $d30)."\n\n"; $d31= strtotime("2017-06-31"); Echo $d31 ."\n"; Echo date("Y-m-d", $d31)."\n\n"; $d32= strtotime("2017-06-32"); Echo $d32 ."\n"; Echo date("Y-m-d", $d32)."\n\n";
based on iA2hF
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/ibFnn
function name:  (null)
number of ops:  37
compiled vars:  !0 = $d30, !1 = $d31, !2 = $d32
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'strtotime'
         1        SEND_VAL                                                 '2017-06-30'
         2        DO_ICALL                                         $3      
         3        ASSIGN                                                   !0, $3
   4     4        CONCAT                                           ~5      !0, '%0A'
         5        ECHO                                                     ~5
   5     6        INIT_FCALL                                               'date'
         7        SEND_VAL                                                 'Y-m-d'
         8        SEND_VAR                                                 !0
         9        DO_ICALL                                         $6      
        10        CONCAT                                           ~7      $6, '%0A%0A'
        11        ECHO                                                     ~7
   7    12        INIT_FCALL                                               'strtotime'
        13        SEND_VAL                                                 '2017-06-31'
        14        DO_ICALL                                         $8      
        15        ASSIGN                                                   !1, $8
   8    16        CONCAT                                           ~10     !1, '%0A'
        17        ECHO                                                     ~10
   9    18        INIT_FCALL                                               'date'
        19        SEND_VAL                                                 'Y-m-d'
        20        SEND_VAR                                                 !1
        21        DO_ICALL                                         $11     
        22        CONCAT                                           ~12     $11, '%0A%0A'
        23        ECHO                                                     ~12
  11    24        INIT_FCALL                                               'strtotime'
        25        SEND_VAL                                                 '2017-06-32'
        26        DO_ICALL                                         $13     
        27        ASSIGN                                                   !2, $13
  12    28        CONCAT                                           ~15     !2, '%0A'
        29        ECHO                                                     ~15
  13    30        INIT_FCALL                                               'date'
        31        SEND_VAL                                                 'Y-m-d'
        32        SEND_VAR                                                 !2
        33        DO_ICALL                                         $16     
        34        CONCAT                                           ~17     $16, '%0A%0A'
        35        ECHO                                                     ~17
        36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0