3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = strtotime(date('Y-d-m H:i:s', '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/NqhY7
function name:  (null)
number of ops:  23
compiled vars:  !0 = $date, !1 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-d-m+H%3Ai%3As'
          3        SEND_VAL                                                 '2014-02-05+5%3A22%3A35'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    5     8        INIT_FCALL                                               'time'
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    7    11        INIT_FCALL                                               'round'
         12        INIT_FCALL                                               'abs'
         13        SUB                                              ~7      !1, !0
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                         $8      
         16        DIV                                              ~9      $8, 60
         17        SEND_VAL                                                 ~9
         18        SEND_VAL                                                 2
         19        DO_ICALL                                         $10     
         20        CONCAT                                           ~11     $10, '+minutes+ago'
         21        ECHO                                                     ~11
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.15 ms | 1399 KiB | 23 Q