3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 1; (int)$value == 1 ? (int)1 : ((int)$value == 2 ? (int)0 : null);
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 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FTPQn
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        CAST                                          4  ~2      !0
          2        IS_EQUAL                                                 ~2, 1
          3      > JMPZ                                                     ~3, ->7
          4    >   CAST                                          4  ~4      1
          5        QM_ASSIGN                                        ~5      ~4
          6      > JMP                                                      ->15
          7    >   CAST                                          4  ~6      !0
          8        IS_EQUAL                                                 ~6, 2
          9      > JMPZ                                                     ~7, ->13
         10    >   CAST                                          4  ~8      0
         11        QM_ASSIGN                                        ~9      ~8
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~9      null
         14    >   QM_ASSIGN                                        ~5      ~9
         15    >   FREE                                                     ~5
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1393 KiB | 13 Q