3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace extension\calendar\classes { error_reporting(E_ALL); ini_set('display_errors', 1); use DateInterval; use DateTime; class Test extends DateTime { public function add(DateInterval $interval) { return parent::add($interval); // TODO: Change the autogenerated stub } } $t=new Test(); $t->add(new DateInterval('P4M')); echo $t->format(DateTime::W3C); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ghq7I
function name:  (null)
number of ops:  22
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'extension%5Ccalendar%5Cclasses%5Cerror_reporting'
          1        FETCH_CONSTANT                                   ~1      'extension%5Ccalendar%5Cclasses%5CE_ALL'
          2        SEND_VAL_EX                                              ~1
          3        DO_FCALL                                      0          
    6     4        INIT_NS_FCALL_BY_NAME                                    'extension%5Ccalendar%5Cclasses%5Cini_set'
          5        SEND_VAL_EX                                              'display_errors'
          6        SEND_VAL_EX                                              1
          7        DO_FCALL                                      0          
   18     8        NEW                                              $4      'extension%5Ccalendar%5Cclasses%5CTest'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $4
   19    11        INIT_METHOD_CALL                                         !0, 'add'
         12        NEW                                              $7      'DateInterval'
         13        SEND_VAL_EX                                              'P4M'
         14        DO_FCALL                                      0          
         15        SEND_VAR_NO_REF_EX                                       $7
         16        DO_FCALL                                      0          
   20    17        INIT_METHOD_CALL                                         !0, 'format'
         18        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsP'
         19        DO_FCALL                                      0  $10     
         20        ECHO                                                     $10
   22    21      > RETURN                                                   1

Class extension\calendar\classes\Test:
Function add:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ghq7I
function name:  add
number of ops:  6
compiled vars:  !0 = $interval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        INIT_STATIC_METHOD_CALL                                  'add'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
   14     5*     > RETURN                                                   null

End of function add

End of class extension\calendar\classes\Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.87 ms | 1396 KiB | 17 Q