3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = '1.0'; //echo floatval($input); if($input !== floatval($input)) { echo 'invalid'; } else { echo $input; }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
Jump found. Position 1 = 9
Branch analysis from position: 9
Jump found. Position 1 = -2
Branch analysis from position: 8
Jump found. Position 1 = -2
filename:       /in/HY0SM
function name:  (null)
number of ops:  10
compiled vars:  !0 = $input
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, '1.0'
   7     1        INIT_FCALL                                               'floatval'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                         $2      
         4        IS_NOT_IDENTICAL                                 ~3      !0, $2
         5      > JMPZ                                                     ~3, ->8
   8     6    >   ECHO                                                     'invalid'
         7      > JMP                                                      ->9
  10     8    >   ECHO                                                     !0
         9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0