3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '1e7'; var_dump($value); if(is_numeric($value)) { $value = (int)$value; if(strpos($value, '.')) { $value = (float)$value; } } var_dump($value);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 17
filename:       /in/fO3NJ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1e7'
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'is_numeric'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7      > JMPZ                                                     $3, ->17
    6     8    >   CAST                                          4  ~4      !0
          9        ASSIGN                                                   !0, ~4
    7    10        INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '.'
         13        DO_ICALL                                         $6      
         14      > JMPZ                                                     $6, ->17
    8    15    >   CAST                                          5  ~7      !0
         16        ASSIGN                                                   !0, ~7
   11    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.92 ms | 1395 KiB | 19 Q