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 { $expectedString = "1.844674407371E+19"; echo "$foo != ".$expectedString.PHP_EOL; $fooAsString = (string)$foo; if (strcmp($expectedString, $fooAsString) === 0) { echo "String representation 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 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/SNai4
function name:  (null)
number of ops:  23
compiled vars:  !0 = $foo, !1 = $expectedString, !2 = $fooAsString
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                                                      ->22
   11     7    >   ASSIGN                                                   !1, '1.844674407371E%2B19'
   12     8        NOP                                                      
          9        FAST_CONCAT                                      ~8      !0, '+%21%3D+'
         10        CONCAT                                           ~9      ~8, !1
         11        CONCAT                                           ~10     ~9, '%0A'
         12        ECHO                                                     ~10
   14    13        CAST                                          6  ~11     !0
         14        ASSIGN                                                   !2, ~11
   16    15        INIT_FCALL                                               'strcmp'
         16        SEND_VAR                                                 !1
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $13     
         19        IS_IDENTICAL                                             $13, 0
         20      > JMPZ                                                     ~14, ->22
   17    21    >   ECHO                                                     'String+representation+is+the+same.'
   20    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.38 ms | 1395 KiB | 15 Q