3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; ?> <?php if ($a==1) { ?> <span class = 'class1'>Line 1</span> <?php } else if ($a==2) { ?> <span class = 'class2'>Line 2</span> <?php } else { ?> <span class = 'class3'>Line 3</span> <?php }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uXv8H
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, 1
    2     1        ECHO                                                     '%0A'
    5     2        IS_EQUAL                                                 !0, 1
          3      > JMPZ                                                     ~2, ->6
    6     4    >   ECHO                                                     '%3Cspan+class+%3D+%27class1%27%3ELine+1%3C%2Fspan%3E%0A%0A'
    5     5      > JMP                                                      ->11
    8     6    >   IS_EQUAL                                                 !0, 2
          7      > JMPZ                                                     ~3, ->10
    9     8    >   ECHO                                                     '%3Cspan+class+%3D+%27class2%27%3ELine+2%3C%2Fspan%3E%0A%0A'
    8     9      > JMP                                                      ->11
   12    10    >   ECHO                                                     '%3Cspan+class+%3D+%27class3%27%3ELine+3%3C%2Fspan%3E%0A'
   13    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.79 ms | 1001 KiB | 13 Q