3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uptime = round((100-($server_data['down'] / $server_data['up'])*100),2); if ($uptime < 0) $uptime = 0; echo $uptime;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/c8QuP
function name:  (null)
number of ops:  15
compiled vars:  !0 = $uptime, !1 = $server_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'round'
          1        FETCH_DIM_R                                      ~2      !1, 'down'
          2        FETCH_DIM_R                                      ~3      !1, 'up'
          3        DIV                                              ~4      ~2, ~3
          4        MUL                                              ~5      ~4, 100
          5        SUB                                              ~6      100, ~5
          6        SEND_VAL                                                 ~6
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !0, $7
    3    10        IS_SMALLER                                               !0, 0
         11      > JMPZ                                                     ~9, ->13
    4    12    >   ASSIGN                                                   !0, 0
    5    13    >   ECHO                                                     !0
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.79 ms | 1398 KiB | 15 Q