3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp1 = "0,2345"; $temp2 = 1244; $temp3 = "123.45"; if (is_numeric((double)$temp1)) {echo $temp1 . "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 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 15
Branch analysis from position: 10
filename:       /in/RN8iX
function name:  (null)
number of ops:  21
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, ->10
          8    >   CONCAT                                           ~8      !0, 'true'
          9        ECHO                                                     ~8
    8    10    >   INIT_FCALL                                               'is_numeric'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13      > JMPZ                                                     $9, ->15
         14    >   ECHO                                                     'true'
    9    15    >   INIT_FCALL                                               'is_numeric'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $10     
         18      > JMPZ                                                     $10, ->20
         19    >   ECHO                                                     'true'
         20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.05 ms | 1395 KiB | 15 Q