3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gettime(){ $date = date('d-m-y h:i:s'); global $date; } gettime(); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/irRHf
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/irRHf
function name:  gettime
number of ops:  6
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd-m-y+h%3Ai%3As'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        BIND_GLOBAL                                              !0, 'date'
    5     5      > RETURN                                                   null

End of function gettime

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.73 ms | 999 KiB | 15 Q