3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.11 ms | 1394 KiB | 17 Q