3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=1;$b=2; echo $y=$a>$b?$y=$a:$y=$b;
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 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ecpNL
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $b, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 2
    4     2        IS_SMALLER                                               !1, !0
          3      > JMPZ                                                     ~5, ->7
          4    >   ASSIGN                                           ~6      !2, !0
          5        QM_ASSIGN                                        ~7      ~6
          6      > JMP                                                      ->9
          7    >   ASSIGN                                           ~8      !2, !1
          8        QM_ASSIGN                                        ~7      ~8
          9    >   ASSIGN                                           ~9      !2, ~7
         10        ECHO                                                     ~9
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1393 KiB | 13 Q