3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.28 ms | 1395 KiB | 15 Q