3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 2; $y = '2'; $z; $x == $y ? $z = 'sim' : $z = 'false'; echo $z;
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/ltcCT
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
    3     1        ASSIGN                                                   !1, '2'
    6     2        IS_EQUAL                                                 !0, !1
          3      > JMPZ                                                     ~5, ->7
          4    >   ASSIGN                                           ~6      !2, 'sim'
          5        QM_ASSIGN                                        ~7      ~6
          6      > JMP                                                      ->9
          7    >   ASSIGN                                           ~8      !2, 'false'
          8        QM_ASSIGN                                        ~7      ~8
          9    >   FREE                                                     ~7
    7    10        ECHO                                                     !2
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.77 ms | 1393 KiB | 13 Q