3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = 12; $t2 = '12'; $t3 = 'xcz12'; var_dump(is_int((int)$t1)); var_dump(is_int((int)$t2)); var_dump(is_int((int)$t3)); var_dump(is_numeric($t1)); var_dump(is_numeric($t2)); var_dump(is_numeric($t3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R67UX
function name:  (null)
number of ops:  37
compiled vars:  !0 = $t1, !1 = $t2, !2 = $t3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 12
    3     1        ASSIGN                                                   !1, '12'
    4     2        ASSIGN                                                   !2, 'xcz12'
    6     3        INIT_FCALL                                               'var_dump'
          4        CAST                                          4  ~6      !0
          5        TYPE_CHECK                                   16  ~7      ~6
          6        SEND_VAL                                                 ~7
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'var_dump'
          9        CAST                                          4  ~9      !1
         10        TYPE_CHECK                                   16  ~10     ~9
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        CAST                                          4  ~12     !2
         15        TYPE_CHECK                                   16  ~13     ~12
         16        SEND_VAL                                                 ~13
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'is_numeric'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $15     
         22        SEND_VAR                                                 $15
         23        DO_ICALL                                                 
   12    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'is_numeric'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                         $17     
         28        SEND_VAR                                                 $17
         29        DO_ICALL                                                 
   13    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'is_numeric'
         32        SEND_VAR                                                 !2
         33        DO_ICALL                                         $19     
         34        SEND_VAR                                                 $19
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.86 ms | 1396 KiB | 17 Q