3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=1; $value = ($i==1) ? 'je to true' : 'je to false'; echo "$value\n"; $i=2; $value = ($i==1) ? 'je to true' : 'je to false'; echo "$value\n"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Branch analysis from position: 15
filename:       /in/FPJ6u
function name:  (null)
number of ops:  21
compiled vars:  !0 = $i, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        IS_EQUAL                                                 !0, 1
          2      > JMPZ                                                     ~3, ->5
          3    >   QM_ASSIGN                                        ~4      'je+to+true'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~4      'je+to+false'
          6    >   ASSIGN                                                   !1, ~4
    5     7        NOP                                                      
          8        FAST_CONCAT                                      ~6      !1, '%0A'
          9        ECHO                                                     ~6
    6    10        ASSIGN                                                   !0, 2
    7    11        IS_EQUAL                                                 !0, 1
         12      > JMPZ                                                     ~8, ->15
         13    >   QM_ASSIGN                                        ~9      'je+to+true'
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~9      'je+to+false'
         16    >   ASSIGN                                                   !1, ~9
    8    17        NOP                                                      
         18        FAST_CONCAT                                      ~11     !1, '%0A'
         19        ECHO                                                     ~11
    9    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.89 ms | 1394 KiB | 13 Q