3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = Array(); $server_time = new DateTime('UTC'); $results['server_time'] = $server_time->getTimestamp(); $cut_off = new DateTime('UTC'); date_time_set($cut_off, 10, 30, 00); $results['cut_off_time'] = $cut_off->getTimestamp(); echo json_encode($results); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DB9DN
function name:  (null)
number of ops:  28
compiled vars:  !0 = $results, !1 = $server_time, !2 = $cut_off
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $4      'DateTime'
          2        SEND_VAL_EX                                              'UTC'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    5     5        INIT_METHOD_CALL                                         !1, 'getTimestamp'
          6        DO_FCALL                                      0  $8      
          7        ASSIGN_DIM                                               !0, 'server_time'
          8        OP_DATA                                                  $8
    7     9        NEW                                              $9      'DateTime'
         10        SEND_VAL_EX                                              'UTC'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !2, $9
    8    13        INIT_FCALL                                               'date_time_set'
         14        SEND_VAR                                                 !2
         15        SEND_VAL                                                 10
         16        SEND_VAL                                                 30
         17        SEND_VAL                                                 0
         18        DO_ICALL                                                 
    9    19        INIT_METHOD_CALL                                         !2, 'getTimestamp'
         20        DO_FCALL                                      0  $14     
         21        ASSIGN_DIM                                               !0, 'cut_off_time'
         22        OP_DATA                                                  $14
   11    23        INIT_FCALL                                               'json_encode'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $15     
         26        ECHO                                                     $15
   12    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.72 ms | 1387 KiB | 17 Q