3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DateTimeCustom extends DateTime { public function setDateTime($datetime, $timezone = null) { parent::__construct($datetime, $timezone); var_dump($this->getLastErrors()); } } $date = new DateTimeCustom('now'); $date->setDateTime('2014-10-00');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8WV9Q
function name:  (null)
number of ops:  8
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'DateTimeCustom'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   16     4        INIT_METHOD_CALL                                         !0, 'setDateTime'
          5        SEND_VAL_EX                                              '2014-10-00'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class DateTimeCustom:
Function setdatetime:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8WV9Q
function name:  setDateTime
number of ops:  12
compiled vars:  !0 = $datetime, !1 = $timezone
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
    8     2        INIT_STATIC_METHOD_CALL                                  
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
    9     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         'getLastErrors'
          8        DO_FCALL                                      0  $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
   10    11      > RETURN                                                   null

End of function setdatetime

End of class DateTimeCustom.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155 ms | 1395 KiB | 15 Q