3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value ='1234lal'; if ( (int)$value === $value || (float)$value === $value ) { var_dump((string)$value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/shm3S
function name:  (null)
number of ops:  13
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1234lal'
    7     1        CAST                                          4  ~2      !0
          2        IS_IDENTICAL                                     ~3      !0, ~2
          3      > JMPNZ_EX                                         ~3      ~3, ->7
    9     4    >   CAST                                          5  ~4      !0
          5        IS_IDENTICAL                                     ~5      !0, ~4
          6        BOOL                                             ~3      ~5
          7    > > JMPZ                                                     ~3, ->12
   11     8    >   INIT_FCALL                                               'var_dump'
          9        CAST                                          6  ~6      !0
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
   12    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.75 ms | 1394 KiB | 15 Q