3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump('11e0' == '.11e2'); var_dump('11e0' == '.011e3'); var_dump('1.1e1' == '.11e2'); echo ".11e2 = ", 0 + '.11e2', "\n"; echo "1.1e1 = ", 0 + '1.1e1', "\n"; function print_num($str) { $num = 0 + $str; $num2 = $str + 0; if ($num <> $num2) {echo "MASSIVE ERROR!! Ignoring..."; } echo "$str = $num\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tAM9f
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                                 
    6     9        ECHO                                                     '.11e2+%3D+'
         10        ECHO                                                     11
         11        ECHO                                                     '%0A'
    7    12        ECHO                                                     '1.1e1+%3D+'
         13        ECHO                                                     11
         14        ECHO                                                     '%0A'
   15    15      > RETURN                                                   1

Function print_num:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/tAM9f
function name:  print_num
number of ops:  14
compiled vars:  !0 = $str, !1 = $num, !2 = $num2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ADD                                              ~3      0, !0
          2        ASSIGN                                                   !1, ~3
   12     3        ADD                                              ~5      !0, 0
          4        ASSIGN                                                   !2, ~5
   13     5        IS_NOT_EQUAL                                             !1, !2
          6      > JMPZ                                                     ~7, ->8
          7    >   ECHO                                                     'MASSIVE+ERROR%21%21+Ignoring...'
   14     8    >   ROPE_INIT                                     4  ~9      !0
          9        ROPE_ADD                                      1  ~9      ~9, '+%3D+'
         10        ROPE_ADD                                      2  ~9      ~9, !1
         11        ROPE_END                                      3  ~8      ~9, '%0A'
         12        ECHO                                                     ~8
   15    13      > RETURN                                                   null

End of function print_num

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.93 ms | 1396 KiB | 15 Q