3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Now: ", $now = strtotime("now"), "\n"; echo "Then: ", $then = strtotime("now -20 years"), "\n"; echo $now2 = strtotime("now +1 year"), "\n"; echo $then2 = strtotime("now -19 years"), "\n"; echo "Dif 1: ", $now-$then, "\n"; echo "Dif 2: ", $now2-$then2, "\n"; echo "Simple: ", 20*365*24*60*60;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PF9bE
function name:  (null)
number of ops:  37
compiled vars:  !0 = $now, !1 = $then, !2 = $now2, !3 = $then2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Now%3A+'
          1        INIT_FCALL                                               'strtotime'
          2        SEND_VAL                                                 'now'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                           ~5      !0, $4
          5        ECHO                                                     ~5
          6        ECHO                                                     '%0A'
    4     7        ECHO                                                     'Then%3A+'
          8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 'now+-20+years'
         10        DO_ICALL                                         $6      
         11        ASSIGN                                           ~7      !1, $6
         12        ECHO                                                     ~7
         13        ECHO                                                     '%0A'
    5    14        INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 'now+%2B1+year'
         16        DO_ICALL                                         $8      
         17        ASSIGN                                           ~9      !2, $8
         18        ECHO                                                     ~9
         19        ECHO                                                     '%0A'
    6    20        INIT_FCALL                                               'strtotime'
         21        SEND_VAL                                                 'now+-19+years'
         22        DO_ICALL                                         $10     
         23        ASSIGN                                           ~11     !3, $10
         24        ECHO                                                     ~11
         25        ECHO                                                     '%0A'
    8    26        ECHO                                                     'Dif+1%3A+'
         27        SUB                                              ~12     !0, !1
         28        ECHO                                                     ~12
         29        ECHO                                                     '%0A'
    9    30        ECHO                                                     'Dif+2%3A+'
         31        SUB                                              ~13     !2, !3
         32        ECHO                                                     ~13
         33        ECHO                                                     '%0A'
   10    34        ECHO                                                     'Simple%3A+'
         35        ECHO                                                     630720000
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.2 ms | 1388 KiB | 15 Q