3v4l.org

run code in 300+ PHP versions simultaneously
<?php $passwordDate = time() - 60; $passwordDate = new \DateTime("@".$passwordDate); $passwordDate->setTimezone(new \DateTimeZone('America/Chicago')); $now = new \DateTime("now", new \DateTimeZone('America/Chicago')); $now->setTimezone(new \DateTimeZone('America/Chicago')); $now->diff($passwordDate)->format("%a");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1qvGi
function name:  (null)
number of ops:  36
compiled vars:  !0 = $passwordDate, !1 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $2      
          2        SUB                                              ~3      $2, 60
          3        ASSIGN                                                   !0, ~3
    5     4        NEW                                              $5      'DateTime'
          5        CONCAT                                           ~6      '%40', !0
          6        SEND_VAL_EX                                              ~6
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $5
    6     9        INIT_METHOD_CALL                                         !0, 'setTimezone'
         10        NEW                                              $9      'DateTimeZone'
         11        SEND_VAL_EX                                              'America%2FChicago'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $9
         14        DO_FCALL                                      0          
    7    15        NEW                                              $12     'DateTime'
         16        SEND_VAL_EX                                              'now'
         17        NEW                                              $13     'DateTimeZone'
         18        SEND_VAL_EX                                              'America%2FChicago'
         19        DO_FCALL                                      0          
         20        SEND_VAR_NO_REF_EX                                       $13
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !1, $12
    8    23        INIT_METHOD_CALL                                         !1, 'setTimezone'
         24        NEW                                              $17     'DateTimeZone'
         25        SEND_VAL_EX                                              'America%2FChicago'
         26        DO_FCALL                                      0          
         27        SEND_VAR_NO_REF_EX                                       $17
         28        DO_FCALL                                      0          
    9    29        INIT_METHOD_CALL                                         !1, 'diff'
         30        SEND_VAR_EX                                              !0
         31        DO_FCALL                                      0  $20     
         32        INIT_METHOD_CALL                                         $20, 'format'
         33        SEND_VAL_EX                                              '%25a'
         34        DO_FCALL                                      0          
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.42 ms | 1388 KiB | 15 Q