3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current = date('Y-m-d H:i:s'); echo "Current time: {$current}\n"; $test = date('Y-m-d H:i:s', time() + 3600); echo "Test time: {$test}\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/49lCK
function name:  (null)
number of ops:  21
compiled vars:  !0 = $current, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        ROPE_INIT                                     3  ~5      'Current+time%3A+'
          5        ROPE_ADD                                      1  ~5      ~5, !0
          6        ROPE_END                                      2  ~4      ~5, '%0A'
          7        ECHO                                                     ~4
    4     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         10        INIT_FCALL                                               'time'
         11        DO_ICALL                                         $7      
         12        ADD                                              ~8      $7, 3600
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !1, $9
    5    16        ROPE_INIT                                     3  ~12     'Test+time%3A+'
         17        ROPE_ADD                                      1  ~12     ~12, !1
         18        ROPE_END                                      2  ~11     ~12, '%0A'
         19        ECHO                                                     ~11
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.83 ms | 1395 KiB | 17 Q