3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ($pidfile=ini_get('hhvm.pid_file'))&&($mtime=@filemtime($pidfile))?(new DateTime('@'.$mtime))->diff(new DateTime('NOW'))->format('%a days, %h hours, %i minutes'):'<i>unknown<i>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 28
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/sSPTf
function name:  (null)
number of ops:  31
compiled vars:  !0 = $pidfile, !1 = $mtime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_get'
          1        SEND_VAL                                                 'hhvm.pid_file'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                           ~3      !0, $2
          4      > JMPZ_EX                                          ~3      ~3, ->12
          5    >   BEGIN_SILENCE                                    ~4      
          6        INIT_FCALL                                               'filemtime'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        END_SILENCE                                              ~4
         10        ASSIGN                                           ~6      !1, $5
         11        BOOL                                             ~3      ~6
         12    > > JMPZ                                                     ~3, ->28
         13    >   NEW                                              $7      'DateTime'
         14        CONCAT                                           ~8      '%40', !1
         15        SEND_VAL_EX                                              ~8
         16        DO_FCALL                                      0          
         17        INIT_METHOD_CALL                                         $7, 'diff'
         18        NEW                                              $10     'DateTime'
         19        SEND_VAL_EX                                              'NOW'
         20        DO_FCALL                                      0          
         21        SEND_VAR_NO_REF_EX                                       $10
         22        DO_FCALL                                      0  $12     
         23        INIT_METHOD_CALL                                         $12, 'format'
         24        SEND_VAL_EX                                              '%25a+days%2C+%25h+hours%2C+%25i+minutes'
         25        DO_FCALL                                      0  $13     
         26        QM_ASSIGN                                        ~14     $13
         27      > JMP                                                      ->29
         28    >   QM_ASSIGN                                        ~14     '%3Ci%3Eunknown%3Ci%3E'
         29    >   ECHO                                                     ~14
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.79 ms | 1400 KiB | 17 Q