3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.92 ms | 1399 KiB | 13 Q