3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.89 ms | 1393 KiB | 13 Q