3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['myKey' => null]; var_dump($arr['myKey'] === null ? null : (float)$arr['myKey']);
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 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VsqPR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        FETCH_DIM_R                                      ~2      !0, 'myKey'
          3        TYPE_CHECK                                    2          ~2
          4      > JMPZ                                                     ~3, ->7
          5    >   QM_ASSIGN                                        ~4      null
          6      > JMP                                                      ->10
          7    >   FETCH_DIM_R                                      ~5      !0, 'myKey'
          8        CAST                                          5  ~6      ~5
          9        QM_ASSIGN                                        ~4      ~6
         10    >   SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.38 ms | 1394 KiB | 15 Q