3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_is_numeric($value) { return (preg_match ("/\A(-){0, 1}([0-9]+)((,|.)[0-9]{3, 3})*((,|.)[0-9]){0, 1}([0-9]*)\z/" ,$value) == 1); } echo my_is_numeric("1.59.59"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hq928
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'my_is_numeric'
          1        SEND_VAL                                                 '1.59.59'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
    7     4      > RETURN                                                   1

Function my_is_numeric:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hq928
function name:  my_is_numeric
number of ops:  8
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5CA%28-%29%7B0%2C+1%7D%28%5B0-9%5D%2B%29%28%28%2C%7C.%29%5B0-9%5D%7B3%2C+3%7D%29%2A%28%28%2C%7C.%29%5B0-9%5D%29%7B0%2C+1%7D%28%5B0-9%5D%2A%29%5Cz%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        IS_EQUAL                                         ~2      $1, 1
          6      > RETURN                                                   ~2
    5     7*     > RETURN                                                   null

End of function my_is_numeric

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.31 ms | 1397 KiB | 16 Q