3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y="Z"; ($y>"AA")?print 1 : print 0; $y++; print $y; $y="Z"; ($y>(++$y))?print 2 : print 3;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
Branch analysis from position: 18
filename:       /in/cV4a6
function name:  (null)
number of ops:  22
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Z'
    3     1        IS_SMALLER                                               'AA', !0
          2      > JMPZ                                                     ~2, ->6
          3    >   ECHO                                                     1
          4        QM_ASSIGN                                        ~3      1
          5      > JMP                                                      ->8
          6    >   ECHO                                                     0
          7        QM_ASSIGN                                        ~3      1
          8    >   FREE                                                     ~3
    4     9        PRE_INC                                                  !0
    5    10        ECHO                                                     !0
    6    11        ASSIGN                                                   !0, 'Z'
    7    12        PRE_INC                                          ~6      !0
         13        IS_SMALLER                                               ~6, !0
         14      > JMPZ                                                     ~7, ->18
         15    >   ECHO                                                     2
         16        QM_ASSIGN                                        ~8      1
         17      > JMP                                                      ->20
         18    >   ECHO                                                     3
         19        QM_ASSIGN                                        ~8      1
         20    >   FREE                                                     ~8
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.38 ms | 1394 KiB | 13 Q