3v4l.org

run code in 500+ PHP versions simultaneously
<?php $i = 1; var_dump($i++ ? $i++ : 'NO'); $i = 1; var_dump($i++ ?: 'NO');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LWZLR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 1
    4     1        INIT_FCALL                                                   'var_dump'
          2        POST_INC                                             ~2      !0
          3      > JMPZ                                                         ~2, ->7
          4    >   POST_INC                                             ~3      !0
          5        QM_ASSIGN                                            ~4      ~3
          6      > JMP                                                          ->8
          7    >   QM_ASSIGN                                            ~4      'NO'
          8    >   SEND_VAL                                                     ~4
          9        DO_ICALL                                                     
    6    10        ASSIGN                                                       !0, 1
    7    11        INIT_FCALL                                                   'var_dump'
         12        POST_INC                                             ~7      !0
         13        JMP_SET                                              ~8      ~7, ->15
         14        QM_ASSIGN                                            ~8      'NO'
         15        SEND_VAL                                                     ~8
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.3 ms | 1142 KiB | 9 Q