3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = (float) (PHP_INT_MAX ); $foo *= 2; if ($foo == 1.844674407371E+19) { echo "true"; } else { echo "$foo != 1.844674407371E+19"; $string = (string)$foo; $expectedString = "1.844674407371E+19"; if (strcmp($expectedString, $string) === 0) { echo "\npresentation is the same."; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/onO1l
function name:  (null)
number of ops:  21
compiled vars:  !0 = $foo, !1 = $string, !2 = $expectedString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          5  ~3      9223372036854775807
          1        ASSIGN                                                   !0, ~3
    5     2        ASSIGN_OP                                     3          !0, 2
    7     3        IS_EQUAL                                                 !0, 1.84467e+19
          4      > JMPZ                                                     ~6, ->7
    8     5    >   ECHO                                                     'true'
          6      > JMP                                                      ->20
   11     7    >   NOP                                                      
          8        FAST_CONCAT                                      ~7      !0, '+%21%3D+1.844674407371E%2B19'
          9        ECHO                                                     ~7
   13    10        CAST                                          6  ~8      !0
         11        ASSIGN                                                   !1, ~8
   14    12        ASSIGN                                                   !2, '1.844674407371E%2B19'
   16    13        INIT_FCALL                                               'strcmp'
         14        SEND_VAR                                                 !2
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $11     
         17        IS_IDENTICAL                                             $11, 0
         18      > JMPZ                                                     ~12, ->20
   17    19    >   ECHO                                                     '%0Apresentation+is+the+same.'
   20    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.56 ms | 1395 KiB | 15 Q