3v4l.org

run code in 500+ PHP versions simultaneously
<?php class UrlConcrete { /** * @param DateTime|null $lastmod * * @return UrlConcrete */ public function setLastmod(DateTime $lastmod = null) { $this->lastmod = $lastmod; return $this; } } $x = new UrlConcrete(); $x->setLastmod(new \DateTime()); $x->setLastmod(new stdclass());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kgBOL
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   NEW                                                  $1      'UrlConcrete'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   19     3        INIT_METHOD_CALL                                             !0, 'setLastmod'
          4        NEW                                                  $4      'DateTime'
          5        DO_FCALL                                          0          
          6        SEND_VAR_NO_REF_EX                                           $4
          7        DO_FCALL                                          0          
   20     8        INIT_METHOD_CALL                                             !0, 'setLastmod'
          9        NEW                                                  $7      'stdclass'
         10        DO_FCALL                                          0          
         11        SEND_VAR_NO_REF_EX                                           $7
         12        DO_FCALL                                          0          
         13      > RETURN                                                       1

Class UrlConcrete:
Function setlastmod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kgBOL
function name:  setLastmod
number of ops:  6
compiled vars:  !0 = $lastmod
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                            !0      null
   12     1        ASSIGN_OBJ                                                   'lastmod'
          2        OP_DATA                                                      !0
   14     3        FETCH_THIS                                           ~2      
          4      > RETURN                                                       ~2
   15     5*     > RETURN                                                       null

End of function setlastmod

End of class UrlConcrete.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.34 ms | 3407 KiB | 13 Q