3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = "37 dicks"; if (!isint($int)) { $int = intval($int); echo "$int is fixed."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/XsoHg
function name:  (null)
number of ops:  12
compiled vars:  !0 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '37+dicks'
    3     1        INIT_FCALL_BY_NAME                                       'isint'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        BOOL_NOT                                         ~3      $2
          5      > JMPZ                                                     ~3, ->11
    4     6    >   CAST                                          4  ~4      !0
          7        ASSIGN                                                   !0, ~4
    5     8        NOP                                                      
          9        FAST_CONCAT                                      ~6      !0, '+is+fixed.'
         10        ECHO                                                     ~6
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151 ms | 1392 KiB | 13 Q