3v4l.org

run code in 300+ PHP versions simultaneously
<?php function X($Format = null) { return(new DateTime($Format)); } echo X()->format('01/m/Y');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V0ORa
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'x'
          1        DO_FCALL                                      0  $0      
          2        INIT_METHOD_CALL                                         $0, 'format'
          3        SEND_VAL_EX                                              '01%2Fm%2FY'
          4        DO_FCALL                                      0  $1      
          5        ECHO                                                     $1
          6      > RETURN                                                   1

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V0ORa
function name:  X
number of ops:  6
compiled vars:  !0 = $Format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      null
    4     1        NEW                                              $1      'DateTime'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   $1
    5     5*     > RETURN                                                   null

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.86 ms | 1397 KiB | 14 Q