3v4l.org

run code in 300+ PHP versions simultaneously
<?php $score_total = 9793611; $score = 1347055; print number_format($score / $score_total * 100, 4, '.', '') . '%';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VC1YL
function name:  (null)
number of ops:  13
compiled vars:  !0 = $score_total, !1 = $score
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 9793611
    4     1        ASSIGN                                                   !1, 1347055
    5     2        INIT_FCALL                                               'number_format'
          3        DIV                                              ~4      !1, !0
          4        MUL                                              ~5      ~4, 100
          5        SEND_VAL                                                 ~5
          6        SEND_VAL                                                 4
          7        SEND_VAL                                                 '.'
          8        SEND_VAL                                                 ''
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      $6, '%25'
         11        ECHO                                                     ~7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.76 ms | 1394 KiB | 15 Q