3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = (integer)"dfgdf"; 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 = 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/P6e4T
function name:  (null)
number of ops:  17
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          4  ~1      'dfgdf'
          1        ASSIGN                                                   !0, ~1
    3     2        INIT_FCALL                                               'var_dump'
          3        ISSET_ISEMPTY_CV                                         !0
          4      > JMPZ                                                     ~3, ->7
          5    >   QM_ASSIGN                                        ~4      ''
          6      > JMP                                                      ->12
          7    >   INIT_FCALL                                               'number_format'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 3
         10        DO_ICALL                                         $5      
         11        QM_ASSIGN                                        ~4      $5
         12    >   SEND_VAL                                                 ~4
         13        GET_TYPE                                         ~6      !0
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.29 ms | 1386 KiB | 17 Q