3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = time(); $date = date(DATE_FORMAT_SHORT, $time); $d = $time - strtotime($date); var_dump($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7TsZ1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $time, !1 = $date, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    4     3        INIT_FCALL                                               'date'
          4        FETCH_CONSTANT                                   ~5      'DATE_FORMAT_SHORT'
          5        SEND_VAL                                                 ~5
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    5     9        INIT_FCALL                                               'strtotime'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        SUB                                              ~9      !0, $8
         13        ASSIGN                                                   !2, ~9
    6    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.98 ms | 1394 KiB | 21 Q