3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = strtotime('2014-02-05 5:22:35'); $now = time(); echo round(abs($now - $date) / 60,2). " minutes ago";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dr3MB
function name:  (null)
number of ops:  19
compiled vars:  !0 = $date, !1 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2014-02-05+5%3A22%3A35'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    7     7        INIT_FCALL                                               'round'
          8        INIT_FCALL                                               'abs'
          9        SUB                                              ~6      !1, !0
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        DIV                                              ~8      $7, 60
         13        SEND_VAL                                                 ~8
         14        SEND_VAL                                                 2
         15        DO_ICALL                                         $9      
         16        CONCAT                                           ~10     $9, '+minutes+ago'
         17        ECHO                                                     ~10
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.88 ms | 1394 KiB | 21 Q