3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = str_repeat('123', 8); // Beyond PHP_INT_MAX var_dump(is_numeric($string)); // true var_dump(is_int($string)); // false it is a string var_dump(is_int(intval($string))); // true var_dump((int) $string); // PHP_INT_MAX var_dump((int) $string == (float) $string); // PHP_INT_MAX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cTSaM
function name:  (null)
number of ops:  29
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'str_repeat'
          1        SEND_VAL                                                     '123'
          2        SEND_VAL                                                     8
          3        DO_ICALL                                             $1      
          4        ASSIGN                                                       !0, $1
    5     5        INIT_FCALL                                                   'var_dump'
          6        FRAMELESS_ICALL_1                is_numeric          ~3      !0
          7        SEND_VAL                                                     ~3
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'var_dump'
         10        TYPE_CHECK                                       16  ~5      !0
         11        SEND_VAL                                                     ~5
         12        DO_ICALL                                                     
    7    13        INIT_FCALL                                                   'var_dump'
         14        CAST                                              4  ~7      !0
         15        TYPE_CHECK                                       16  ~8      ~7
         16        SEND_VAL                                                     ~8
         17        DO_ICALL                                                     
    8    18        INIT_FCALL                                                   'var_dump'
         19        CAST                                              4  ~10     !0
         20        SEND_VAL                                                     ~10
         21        DO_ICALL                                                     
   10    22        INIT_FCALL                                                   'var_dump'
         23        CAST                                              4  ~12     !0
         24        CAST                                              5  ~13     !0
         25        IS_EQUAL                                             ~14     ~12, ~13
         26        SEND_VAL                                                     ~14
         27        DO_ICALL                                                     
         28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.74 ms | 480 KiB | 9 Q