3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c=TRUE; $a = 'One '; $b = 'Two'; if($a == $c) echo $a; if($b == $c) echo $b;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 6
filename:       /in/sa5AC
function name:  (null)
number of ops:  10
compiled vars:  !0 = $c, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                                   !1, 'One+'
    4     2        ASSIGN                                                   !2, 'Two'
    5     3        IS_EQUAL                                                 !1, !0
          4      > JMPZ                                                     ~6, ->6
    6     5    >   ECHO                                                     !1
    7     6    >   IS_EQUAL                                                 !2, !0
          7      > JMPZ                                                     ~7, ->9
    8     8    >   ECHO                                                     !2
          9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.54 ms | 1393 KiB | 13 Q