3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = floatval('1.1'); echo $test; if ( is_numeric($test)) { echo "test"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/qXGam
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          5  ~1      '1.1'
          1        ASSIGN                                                   !0, ~1
    5     2        ECHO                                                     !0
    7     3        INIT_FCALL                                               'is_numeric'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->8
    8     7    >   ECHO                                                     'test'
    9     8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.81 ms | 1398 KiB | 15 Q