3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '+6 year +1 month'; preg_match('/\+(\d+)\smonth/', $string, $monthMatch); preg_match('/\+(\d+)\syear/', $string, $yearMatch); $monthInterval = isset($monthMatch[1]) ? (int)$monthMatch[1] : 0; $yearInterval = isset($yearMatch[1]) ? (int)$yearMatch[1] : 0; $var = 0; var_dump(isset($var)); var_dump(!empty($var)); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
Branch analysis from position: 25
filename:       /in/RqFa4
function name:  (null)
number of ops:  38
compiled vars:  !0 = $string, !1 = $monthMatch, !2 = $yearMatch, !3 = $monthInterval, !4 = $yearInterval, !5 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2B6+year+%2B1+month'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5C%2B%28%5Cd%2B%29%5Csmonth%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%5C%2B%28%5Cd%2B%29%5Csyear%2F'
          8        SEND_VAR                                                 !0
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
    7    11        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 1
         12      > JMPZ                                                     ~9, ->17
         13    >   FETCH_DIM_R                                      ~10     !1, 1
         14        CAST                                          4  ~11     ~10
         15        QM_ASSIGN                                        ~12     ~11
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~12     0
         18    >   ASSIGN                                                   !3, ~12
    8    19        ISSET_ISEMPTY_DIM_OBJ                         0          !2, 1
         20      > JMPZ                                                     ~14, ->25
         21    >   FETCH_DIM_R                                      ~15     !2, 1
         22        CAST                                          4  ~16     ~15
         23        QM_ASSIGN                                        ~17     ~16
         24      > JMP                                                      ->26
         25    >   QM_ASSIGN                                        ~17     0
         26    >   ASSIGN                                                   !4, ~17
   10    27        ASSIGN                                                   !5, 0
   12    28        INIT_FCALL                                               'var_dump'
         29        ISSET_ISEMPTY_CV                                 ~20     !5
         30        SEND_VAL                                                 ~20
         31        DO_ICALL                                                 
   13    32        INIT_FCALL                                               'var_dump'
         33        ISSET_ISEMPTY_CV                                 ~22     !5
         34        BOOL_NOT                                         ~23     ~22
         35        SEND_VAL                                                 ~23
         36        DO_ICALL                                                 
   14    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.86 ms | 1432 KiB | 15 Q