3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array('impressions' => 0, 'spend' => 45); echo ($row['impressions'] > 0) ? $row['spend'] / $row['impressions'] * 1000 : 0;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 10
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: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hgs2q
function name:  (null)
number of ops:  13
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_R                                      ~2      !0, 'impressions'
          2        IS_SMALLER                                               0, ~2
          3      > JMPZ                                                     ~3, ->10
          4    >   FETCH_DIM_R                                      ~4      !0, 'spend'
          5        FETCH_DIM_R                                      ~5      !0, 'impressions'
          6        DIV                                              ~6      ~4, ~5
          7        MUL                                              ~7      ~6, 1000
          8        QM_ASSIGN                                        ~8      ~7
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~8      0
         11    >   ECHO                                                     ~8
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.29 ms | 1393 KiB | 13 Q