3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 0; var_dump(empty($n) ? "" : number_format($n, 3), gettype($n));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
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: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gK3AQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_CV                                         !0
          3      > JMPZ                                                     ~2, ->6
          4    >   QM_ASSIGN                                        ~3      ''
          5      > JMP                                                      ->11
          6    >   INIT_FCALL                                               'number_format'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 3
          9        DO_ICALL                                         $4      
         10        QM_ASSIGN                                        ~3      $4
         11    >   SEND_VAL                                                 ~3
         12        GET_TYPE                                         ~5      !0
         13        SEND_VAL                                                 ~5
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.2 ms | 1394 KiB | 17 Q