3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_id = "2"; $user_id = "0123"; if ( (int) $user_id == 0 ) { echo "The user_id $user_id was not an integer.\n"; exit; } echo "---> I think $user_id is an INT\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BWs2M
function name:  (null)
number of ops:  15
compiled vars:  !0 = $user_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2'
    3     1        ASSIGN                                                   !0, '0123'
    5     2        CAST                                          4  ~3      !0
          3        IS_EQUAL                                                 ~3, 0
          4      > JMPZ                                                     ~4, ->10
    6     5    >   ROPE_INIT                                     3  ~6      'The+user_id+'
          6        ROPE_ADD                                      1  ~6      ~6, !0
          7        ROPE_END                                      2  ~5      ~6, '+was+not+an+integer.%0A'
          8        ECHO                                                     ~5
    7     9      > EXIT                                                     
   10    10    >   ROPE_INIT                                     3  ~9      '---%3E+I+think+'
         11        ROPE_ADD                                      1  ~9      ~9, !0
         12        ROPE_END                                      2  ~8      ~9, '+is+an+INT%0A'
         13        ECHO                                                     ~8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.03 ms | 1393 KiB | 13 Q