3v4l.org

run code in 300+ PHP versions simultaneously
<?php $article['ActionPrice1'] = '7,95'; $test = isset($article['ActionPrice1']) && $article['ActionPrice1'] > 0.0000 ? floatval($article['ActionPrice1']) : null; var_dump($test);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/AnUeb
function name:  (null)
number of ops:  18
compiled vars:  !0 = $article, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'ActionPrice1'
          1        OP_DATA                                                  '7%2C95'
    3     2        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      !0, 'ActionPrice1'
          3      > JMPZ_EX                                          ~3      ~3, ->7
          4    >   FETCH_DIM_R                                      ~4      !0, 'ActionPrice1'
          5        IS_SMALLER                                       ~5      0, ~4
          6        BOOL                                             ~3      ~5
          7    > > JMPZ                                                     ~3, ->12
    4     8    >   FETCH_DIM_R                                      ~6      !0, 'ActionPrice1'
          9        CAST                                          5  ~7      ~6
         10        QM_ASSIGN                                        ~8      ~7
         11      > JMP                                                      ->13
    5    12    >   QM_ASSIGN                                        ~8      null
    3    13    >   ASSIGN                                                   !1, ~8
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.93 ms | 1395 KiB | 15 Q