3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.04 ms | 1393 KiB | 13 Q