3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $time = time(); //Qcodo version print_r(new Datetime(date('Y-m-d H:i:s', $time))); //v3 version print_r(new Datetime("@$time"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e70jb
function name:  (null)
number of ops:  25
compiled vars:  !0 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FLos_Angeles'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    8     6        INIT_FCALL                                               'print_r'
          7        NEW                                              $4      'Datetime'
          8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        SEND_VAR_NO_REF_EX                                       $5
         13        DO_FCALL                                      0          
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                                 
   12    16        INIT_FCALL                                               'print_r'
         17        NEW                                              $8      'Datetime'
         18        NOP                                                      
         19        FAST_CONCAT                                      ~9      '%40', !0
         20        SEND_VAL_EX                                              ~9
         21        DO_FCALL                                      0          
         22        SEND_VAR                                                 $8
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.14 ms | 1399 KiB | 21 Q