3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chat_session = "1449675645"; $ts = "15:40:50"; // 5 segundos de diferencia $datetime = date('Y-m-d', $chat_session) . " " . $ts; date_default_timezone_set('GMT'); $datetime_unix = strtotime($datetime); $segundos = (int)$datetime_unix - (int)$chat_session; echo "inicio : $chat_session\n"; echo "respuesta : $datetime_unix\n"; echo "diferencia seg : $segundos";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lVSks
function name:  (null)
number of ops:  32
compiled vars:  !0 = $chat_session, !1 = $ts, !2 = $datetime, !3 = $datetime_unix, !4 = $segundos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1449675645'
    4     1        ASSIGN                                                   !1, '15%3A40%3A50'
    8     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Y-m-d'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        CONCAT                                           ~8      $7, '+'
          7        CONCAT                                           ~9      ~8, !1
          8        ASSIGN                                                   !2, ~9
    9     9        INIT_FCALL                                               'date_default_timezone_set'
         10        SEND_VAL                                                 'GMT'
         11        DO_ICALL                                                 
   10    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
   11    16        CAST                                          4  ~14     !3
         17        CAST                                          4  ~15     !0
         18        SUB                                              ~16     ~14, ~15
         19        ASSIGN                                                   !4, ~16
   13    20        ROPE_INIT                                     3  ~19     'inicio++++++++++++++%3A+'
         21        ROPE_ADD                                      1  ~19     ~19, !0
         22        ROPE_END                                      2  ~18     ~19, '%0A'
         23        ECHO                                                     ~18
   14    24        ROPE_INIT                                     3  ~22     'respuesta+++++++++++%3A+'
         25        ROPE_ADD                                      1  ~22     ~22, !3
         26        ROPE_END                                      2  ~21     ~22, '%0A'
         27        ECHO                                                     ~21
   15    28        NOP                                                      
         29        FAST_CONCAT                                      ~24     'diferencia+seg++++++%3A+', !4
         30        ECHO                                                     ~24
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.63 ms | 1396 KiB | 19 Q