3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.73 ms | 1386 KiB | 17 Q