3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('precision', 100); $foo = PHP_INT_MAX * 2; var_dump($foo); var_dump($foo); 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 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/oAd0d
function name:  (null)
number of ops:  31
compiled vars:  !0 = $foo, !1 = $expectedString, !2 = $fooAsString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'precision'
          2        SEND_VAL                                                 100
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, 1.84467e+19
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    8    11        IS_EQUAL                                                 !0, 1.84467e+19
         12      > JMPZ                                                     ~7, ->15
    9    13    >   ECHO                                                     'true'
         14      > JMP                                                      ->30
   12    15    >   ASSIGN                                                   !1, '1.844674407371E%2B19'
   13    16        NOP                                                      
         17        FAST_CONCAT                                      ~9      !0, '+%21%3D+'
         18        CONCAT                                           ~10     ~9, !1
         19        CONCAT                                           ~11     ~10, '%0A'
         20        ECHO                                                     ~11
   15    21        CAST                                          6  ~12     !0
         22        ASSIGN                                                   !2, ~12
   17    23        INIT_FCALL                                               'strcmp'
         24        SEND_VAR                                                 !1
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $14     
         27        IS_IDENTICAL                                             $14, 0
         28      > JMPZ                                                     ~15, ->30
   18    29    >   ECHO                                                     'String+representation+is+the+same.'
   21    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.42 ms | 1396 KiB | 19 Q