3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myFunction($format, $timestamp){ echo $format."/"; } function _date($format, $timestamp = null){ $result = !isset($timestamp) ? date($format) : date($format, $timestamp); myFunction($format, $timestamp); return $result; } echo _date("Y-m-d");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4YiHM
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               '_date'
          1        SEND_VAL                                                 'Y-m-d'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function myfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4YiHM
function name:  myFunction
number of ops:  5
compiled vars:  !0 = $format, !1 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        CONCAT                                           ~2      !0, '%2F'
          3        ECHO                                                     ~2
    4     4      > RETURN                                                   null

End of function myfunction

Function _date:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4YiHM
function name:  _date
number of ops:  22
compiled vars:  !0 = $format, !1 = $timestamp, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
    6     2        ISSET_ISEMPTY_CV                                 ~3      !1
          3        BOOL_NOT                                         ~4      ~3
          4      > JMPZ                                                     ~4, ->10
          5    >   INIT_FCALL                                               'date'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        QM_ASSIGN                                        ~6      $5
          9      > JMP                                                      ->15
         10    >   INIT_FCALL                                               'date'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        QM_ASSIGN                                        ~6      $7
         15    >   ASSIGN                                                   !2, ~6
    7    16        INIT_FCALL                                               'myfunction'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !1
         19        DO_FCALL                                      0          
    8    20      > RETURN                                                   !2
    9    21*     > RETURN                                                   null

End of function _date

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.76 ms | 1403 KiB | 17 Q