3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 1.630; $number = ""; if( $value >= 1000 ) { $number .= floor($value / 1000) . "k"; } else { $number .= $value; } echo $number . " views";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K0CZ8
function name:  (null)
number of ops:  15
compiled vars:  !0 = $value, !1 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1.63
    4     1        ASSIGN                                                   !1, ''
    6     2        IS_SMALLER_OR_EQUAL                                      1000, !0
          3      > JMPZ                                                     ~4, ->11
    8     4    >   INIT_FCALL                                               'floor'
          5        DIV                                              ~5      !0, 1000
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
          8        CONCAT                                           ~7      $6, 'k'
          9        ASSIGN_OP                                     8          !1, ~7
         10      > JMP                                                      ->12
   10    11    >   ASSIGN_OP                                     8          !1, !0
   12    12    >   CONCAT                                           ~10     !1, '+views'
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.66 ms | 1394 KiB | 15 Q