3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1393 KiB | 13 Q