3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.47 ms | 1394 KiB | 17 Q