3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uptime = (100-($server_data['down'] / $server_data['up'])*100); if ($uptime < 0) $uptime = 0; echo $uptime;
Finding entry points
Branch analysis from position: 0
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/gsBe1
function name:  (null)
number of ops:  11
compiled vars:  !0 = $uptime, !1 = $server_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_R                                      ~2      !1, 'down'
          1        FETCH_DIM_R                                      ~3      !1, 'up'
          2        DIV                                              ~4      ~2, ~3
          3        MUL                                              ~5      ~4, 100
          4        SUB                                              ~6      100, ~5
          5        ASSIGN                                                   !0, ~6
    3     6        IS_SMALLER                                               !0, 0
          7      > JMPZ                                                     ~8, ->9
    4     8    >   ASSIGN                                                   !0, 0
    5     9    >   ECHO                                                     !0
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.39 ms | 1393 KiB | 13 Q