3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = time(); echo date('d-m-Y H:i', $x) . "\n"; $a = strtotime('2013-11-14T19:00:00'); echo ($x-$a)/60;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IA7Qj
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'd-m-Y+H%3Ai'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        CONCAT                                           ~5      $4, '%0A'
          8        ECHO                                                     ~5
    4     9        INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 '2013-11-14T19%3A00%3A00'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    5    13        SUB                                              ~8      !0, !1
         14        DIV                                              ~9      ~8, 60
         15        ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.9 ms | 1394 KiB | 19 Q