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); echo "inicio : $chat_session\n"; echo "respuesta : $datetime_unix\n"; echo "diferencia seg : " . ((int)$datetime_unix - (int)$chat_session);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WV4XO
function name:  (null)
number of ops:  30
compiled vars:  !0 = $chat_session, !1 = $ts, !2 = $datetime, !3 = $datetime_unix
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                                         $6      
          6        CONCAT                                           ~7      $6, '+'
          7        CONCAT                                           ~8      ~7, !1
          8        ASSIGN                                                   !2, ~8
    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                                         $11     
         15        ASSIGN                                                   !3, $11
   12    16        ROPE_INIT                                     3  ~14     'inicio++++++++++++++%3A+'
         17        ROPE_ADD                                      1  ~14     ~14, !0
         18        ROPE_END                                      2  ~13     ~14, '%0A'
         19        ECHO                                                     ~13
   13    20        ROPE_INIT                                     3  ~17     'respuesta+++++++++++%3A+'
         21        ROPE_ADD                                      1  ~17     ~17, !3
         22        ROPE_END                                      2  ~16     ~17, '%0A'
         23        ECHO                                                     ~16
   14    24        CAST                                          4  ~19     !3
         25        CAST                                          4  ~20     !0
         26        SUB                                              ~21     ~19, ~20
         27        CONCAT                                           ~22     'diferencia+seg++++++%3A+', ~21
         28        ECHO                                                     ~22
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.98 ms | 1395 KiB | 19 Q