3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = 1997; $day = 5; $month = 12; $tz = timezone_open('Europe/Berlin'); $age = date_diff(date_create("$year-$month-$day", $tz), date_create('now', $tz)); if ($age->m > 1) { echo 'Greater than 1'; } else { echo 'Not greater than 1'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7n8X0
function name:  (null)
number of ops:  32
compiled vars:  !0 = $year, !1 = $day, !2 = $month, !3 = $tz, !4 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1997
    4     1        ASSIGN                                                   !1, 5
    5     2        ASSIGN                                                   !2, 12
    6     3        INIT_FCALL                                               'timezone_open'
          4        SEND_VAL                                                 'Europe%2FBerlin'
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !3, $8
    7     7        INIT_FCALL                                               'date_diff'
          8        INIT_FCALL                                               'date_create'
          9        ROPE_INIT                                     5  ~11     !0
         10        ROPE_ADD                                      1  ~11     ~11, '-'
         11        ROPE_ADD                                      2  ~11     ~11, !2
         12        ROPE_ADD                                      3  ~11     ~11, '-'
         13        ROPE_END                                      4  ~10     ~11, !1
         14        SEND_VAL                                                 ~10
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $14     
         17        SEND_VAR                                                 $14
    8    18        INIT_FCALL                                               'date_create'
         19        SEND_VAL                                                 'now'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $15     
         22        SEND_VAR                                                 $15
         23        DO_ICALL                                         $16     
    7    24        ASSIGN                                                   !4, $16
   11    25        FETCH_OBJ_R                                      ~18     !4, 'm'
         26        IS_SMALLER                                               1, ~18
         27      > JMPZ                                                     ~19, ->30
   12    28    >   ECHO                                                     'Greater+than+1'
         29      > JMP                                                      ->31
   14    30    >   ECHO                                                     'Not+greater+than+1'
   15    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.99 ms | 1388 KiB | 19 Q