3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datum = function(){ echo date("\YY-\mm-\dd \HH:\ii.\ss"); }; @ini_set('date.timezone', 'Europe/Bratislava'); $datum(); @ini_set('date.timezone', 'UTC'); $datum();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YnPdI
function name:  (null)
number of ops:  19
compiled vars:  !0 = $datum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYnPdI%3A3%240'
          1        ASSIGN                                                   !0, ~1
    7     2        BEGIN_SILENCE                                    ~3      
          3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'date.timezone'
          5        SEND_VAL                                                 'Europe%2FBratislava'
          6        DO_ICALL                                                 
          7        END_SILENCE                                              ~3
    8     8        INIT_DYNAMIC_CALL                                        !0
          9        DO_FCALL                                      0          
   10    10        BEGIN_SILENCE                                    ~6      
         11        INIT_FCALL                                               'ini_set'
         12        SEND_VAL                                                 'date.timezone'
         13        SEND_VAL                                                 'UTC'
         14        DO_ICALL                                                 
         15        END_SILENCE                                              ~6
   11    16        INIT_DYNAMIC_CALL                                        !0
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FYnPdI%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YnPdI
function name:  {closure}
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 '%5CYY-%5Cmm-%5Cdd+%5CHH%3A%5Cii.%5Css'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    5     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FYnPdI%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.52 ms | 1387 KiB | 17 Q