3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode(json_encode(array(500019.68325692)), true); $b = array(500019.68325692); print ($b[0] == 500019.68325692 ? 1 : 0); print ($a[0] == 500019.68325692 ? 1 : 0);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
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: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
Branch analysis from position: 21
filename:       /in/qDCpO
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        INIT_FCALL                                               'json_encode'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    4     8        ASSIGN                                                   !1, <array>
    6     9        FETCH_DIM_R                                      ~6      !1, 0
         10        IS_EQUAL                                                 ~6, 500020
         11      > JMPZ                                                     ~7, ->14
         12    >   QM_ASSIGN                                        ~8      1
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~8      0
         15    >   ECHO                                                     ~8
    7    16        FETCH_DIM_R                                      ~9      !0, 0
         17        IS_EQUAL                                                 ~9, 500020
         18      > JMPZ                                                     ~10, ->21
         19    >   QM_ASSIGN                                        ~11     1
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~11     0
         22    >   ECHO                                                     ~11
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.25 ms | 1395 KiB | 17 Q