3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numeric_string = '42'; $integer = 42; ctype_digit($numeric_string); // true ctype_digit($integer); // false is_numeric($numeric_string); // true is_numeric($integer); // true
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PakRe
function name:  (null)
number of ops:  15
compiled vars:  !0 = $numeric_string, !1 = $integer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '42'
    4     1        ASSIGN                                                   !1, 42
    6     2        INIT_FCALL                                               'ctype_digit'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'ctype_digit'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'is_numeric'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   10    11        INIT_FCALL                                               'is_numeric'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.51 ms | 1394 KiB | 17 Q