3v4l.org

run code in 500+ PHP versions simultaneously
<?php //set_error_handler(function($errno, $errstr){ throw new Exception($errstr);}); class DateTimeCustom extends DateTime { public function __construct($datetime, $timezone = null) { try { parent::__construct($datetime, $timezone); } catch (Exception $e) { var_dump($this, parent::getLastErrors(), parent::format('c')); } } } $date = new DateTimeCustom("sunday 09 blabla 2001 103:46:40 CEST");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FeE0n
function name:  (null)
number of ops:  5
compiled vars:  !0 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E >   NEW                                                  $1      'DateTimeCustom'
          1        SEND_VAL_EX                                                  'sunday+09+blabla+2001+103%3A46%3A40+CEST'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
          4      > RETURN                                                       1

Class DateTimeCustom:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FeE0n
function name:  __construct
number of ops:  20
compiled vars:  !0 = $datetime, !1 = $timezone, !2 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      null
   11     2        INIT_STATIC_METHOD_CALL                                      
          3        SEND_VAR_EX                                                  !0
          4        SEND_VAR_EX                                                  !1
          5        DO_FCALL                                          0          
          6      > JMP                                                          ->19
   13     7  E > > CATCH                                           last         'Exception'
   15     8    >   INIT_FCALL                                                   'var_dump'
          9        FETCH_THIS                                           ~4      
         10        SEND_VAL                                                     ~4
         11        INIT_STATIC_METHOD_CALL                                      'getLastErrors'
         12        DO_FCALL                                          0  $5      
         13        SEND_VAR                                                     $5
         14        INIT_STATIC_METHOD_CALL                                      'format'
         15        SEND_VAL_EX                                                  'c'
         16        DO_FCALL                                          0  $6      
         17        SEND_VAR                                                     $6
         18        DO_ICALL                                                     
   17    19    > > RETURN                                                       null

End of function __construct

End of class DateTimeCustom.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
177.76 ms | 3265 KiB | 14 Q