3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode(json_encode(array(500019.68325692)), true); $b = array('xes' => array(500019.68325692)); print ($a['xes'][0] == 500019.68325692 ? 1 : 0); print ($b['xes'][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 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
Branch analysis from position: 30
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
Branch analysis from position: 23
filename:       /in/4WQ27
function name:  (null)
number of ops:  33
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      !0, 'xes'
         10        FETCH_DIM_R                                      ~7      ~6, 0
         11        IS_EQUAL                                                 ~7, 500020
         12      > JMPZ                                                     ~8, ->15
         13    >   QM_ASSIGN                                        ~9      1
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~9      0
         16    >   ECHO                                                     ~9
    7    17        FETCH_DIM_R                                      ~10     !1, 'xes'
         18        FETCH_DIM_R                                      ~11     ~10, 0
         19        IS_EQUAL                                                 ~11, 500020
         20      > JMPZ                                                     ~12, ->23
         21    >   QM_ASSIGN                                        ~13     1
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~13     0
         24    >   ECHO                                                     ~13
    8    25        FETCH_DIM_R                                      ~14     !0, 0
         26        IS_EQUAL                                                 ~14, 500020
         27      > JMPZ                                                     ~15, ->30
         28    >   QM_ASSIGN                                        ~16     1
         29      > JMP                                                      ->31
         30    >   QM_ASSIGN                                        ~16     0
         31    >   ECHO                                                     ~16
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.02 ms | 1396 KiB | 17 Q