3v4l.org

run code in 500+ PHP versions simultaneously
<?php class CastsDateTime extends DateTimeImmutable { public function myFormat() { return parent::format('Y-m-d H:i'); } } $dt = new CastsDateTime(); echo $dt->myFormat();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tQ87q
function name:  (null)
number of ops:  7
compiled vars:  !0 = $dt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   NEW                                                  $1      'CastsDateTime'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   11     3        INIT_METHOD_CALL                                             !0, 'myFormat'
          4        DO_FCALL                                          0  $4      
          5        ECHO                                                         $4
          6      > RETURN                                                       1

Class CastsDateTime:
Function myformat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tQ87q
function name:  myFormat
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_STATIC_METHOD_CALL                                      'format'
          1        SEND_VAL_EX                                                  'Y-m-d+H%3Ai'
          2        DO_FCALL                                          0  $0      
          3      > RETURN                                                       $0
    7     4*     > RETURN                                                       null

End of function myformat

End of class CastsDateTime.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
202.47 ms | 1877 KiB | 13 Q