3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dpx = 2; $width = 100; $height = null; if ($dpx !== null) { if ($width !== null) { $width *= $dpx; } if ($height !== null) { $height *= $dpx; } } echo $width;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 8
Branch analysis from position: 11
filename:       /in/eiKN7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dpx, !1 = $width, !2 = $height
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    4     1        ASSIGN                                                   !1, 100
    5     2        ASSIGN                                                   !2, null
    7     3        TYPE_CHECK                                  1020          !0
          4      > JMPZ                                                     ~6, ->11
    8     5    >   TYPE_CHECK                                  1020          !1
          6      > JMPZ                                                     ~7, ->8
    9     7    >   ASSIGN_OP                                     3          !1, !0
   11     8    >   TYPE_CHECK                                  1020          !2
          9      > JMPZ                                                     ~9, ->11
   12    10    >   ASSIGN_OP                                     3          !2, !0
   16    11    >   ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.02 ms | 1397 KiB | 13 Q