3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 2004; if (($x % 400 == 0 || $x % 100 != 0) && $x % 4 == 0 ) { echo 'leap year'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/KnnGM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2004
    4     1        MOD                                              ~2      !0, 400
          2        IS_EQUAL                                         ~3      ~2, 0
          3      > JMPNZ_EX                                         ~3      ~3, ->7
          4    >   MOD                                              ~4      !0, 100
          5        IS_NOT_EQUAL                                     ~5      ~4, 0
          6        BOOL                                             ~3      ~5
          7    > > JMPZ_EX                                          ~3      ~3, ->11
          8    >   MOD                                              ~6      !0, 4
          9        IS_EQUAL                                         ~7      ~6, 0
         10        BOOL                                             ~3      ~7
         11    > > JMPZ                                                     ~3, ->13
    5    12    >   ECHO                                                     'leap+year'
    6    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.13 ms | 1397 KiB | 13 Q