3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.7 ms | 1395 KiB | 19 Q