3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace extension\calendar\classes { error_reporting(E_ALL); class Test extends \DateTime { public function add($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/UAEf9
function name:  (null)
number of ops:  18
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          
   15     4        NEW                                              $3      'extension%5Ccalendar%5Cclasses%5CTest'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
   16     7        INIT_METHOD_CALL                                         !0, 'add'
          8        NEW                                              $6      'DateInterval'
          9        SEND_VAL_EX                                              'P4M'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $6
         12        DO_FCALL                                      0          
   17    13        INIT_METHOD_CALL                                         !0, 'format'
         14        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3AsP'
         15        DO_FCALL                                      0  $9      
         16        ECHO                                                     $9
   19    17      > 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/UAEf9
function name:  add
number of ops:  6
compiled vars:  !0 = $interval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_STATIC_METHOD_CALL                                  'add'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
   11     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:
166.61 ms | 1395 KiB | 15 Q