3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/London'); $data = strtotime('2014-06-23 09:58:19'); var_dump($data); $delta = time() - $data; $sessionTime = sprintf("%02d%s%02d%s%02d", floor($delta/3600), ':', ($delta/60)%60, ':', $delta%60); var_dump($sessionTime);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KS6lg
function name:  (null)
number of ops:  34
compiled vars:  !0 = $data, !1 = $delta, !2 = $sessionTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FLondon'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '2014-06-23+09%3A58%3A19'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'time'
         11        DO_ICALL                                         $7      
         12        SUB                                              ~8      $7, !0
         13        ASSIGN                                                   !1, ~8
    6    14        INIT_FCALL                                               'sprintf'
         15        SEND_VAL                                                 '%2502d%25s%2502d%25s%2502d'
         16        INIT_FCALL                                               'floor'
         17        DIV                                              ~10     !1, 3600
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                         $11     
         20        SEND_VAR                                                 $11
         21        SEND_VAL                                                 '%3A'
         22        DIV                                              ~12     !1, 60
         23        MOD                                              ~13     ~12, 60
         24        SEND_VAL                                                 ~13
         25        SEND_VAL                                                 '%3A'
         26        MOD                                              ~14     !1, 60
         27        SEND_VAL                                                 ~14
         28        DO_ICALL                                         $15     
         29        ASSIGN                                                   !2, $15
    7    30        INIT_FCALL                                               'var_dump'
         31        SEND_VAR                                                 !2
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.44 ms | 1396 KiB | 25 Q