3v4l.org

run code in 500+ PHP versions simultaneously
<?php function gettime(){ global $date; $date = date('d-m-y h:i:s'); } gettime(); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M8P7T
function name:  (null)
number of ops:  4
compiled vars:  !0 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                                   'gettime'
          1        DO_FCALL                                          0          
    7     2        ECHO                                                         !0
    8     3      > RETURN                                                       1

Function gettime:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M8P7T
function name:  gettime
number of ops:  6
compiled vars:  !0 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   BIND_GLOBAL                                                  !0, 'date'
    4     1        INIT_FCALL                                                   'date'
          2        SEND_VAL                                                     'd-m-y+h%3Ai%3As'
          3        DO_ICALL                                             $1      
          4        ASSIGN                                                       !0, $1
    5     5      > RETURN                                                       null

End of function gettime

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
148.82 ms | 1987 KiB | 15 Q