3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = 3, Position 2 = 10
Branch analysis from position: 3
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/DrRZD
function name:  (null)
number of ops:  14
compiled vars:  !0 = $number, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        IS_SMALLER                                               1000, !1
          2      > JMPZ                                                     ~3, ->10
    6     3    >   INIT_FCALL                                               'floor'
          4        DIV                                              ~4      !1, 1000
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        CONCAT                                           ~6      $5, 'k'
          8        ASSIGN_OP                                     8          !0, ~6
          9      > JMP                                                      ->11
    8    10    >   ASSIGN_OP                                     8          !0, !1
   10    11    >   CONCAT                                           ~9      !0, '+views'
         12        ECHO                                                     ~9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.4 ms | 1386 KiB | 15 Q