3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = '5'; var_dump((int) isset($var)?$var:0); $var = '5'; var_dump((int) isset($var)?"1111":0); $var = '5'; var_dump((int) isset($var)?:0);
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 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
filename:       /in/CqK2A
function name:  (null)
number of ops:  29
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '5'
          1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_CV                                 ~2      !0
          3        CAST                                          4  ~3      ~2
          4      > JMPZ                                                     ~3, ->7
          5    >   QM_ASSIGN                                        ~4      !0
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~4      0
          8    >   SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    4    10        ASSIGN                                                   !0, '5'
         11        INIT_FCALL                                               'var_dump'
         12        ISSET_ISEMPTY_CV                                 ~7      !0
         13        CAST                                          4  ~8      ~7
         14      > JMPZ                                                     ~8, ->17
         15    >   QM_ASSIGN                                        ~9      '1111'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~9      0
         18    >   SEND_VAL                                                 ~9
         19        DO_ICALL                                                 
    5    20        ASSIGN                                                   !0, '5'
         21        INIT_FCALL                                               'var_dump'
         22        ISSET_ISEMPTY_CV                                 ~12     !0
         23        CAST                                          4  ~13     ~12
         24        JMP_SET                                          ~14     ~13, ->26
         25        QM_ASSIGN                                        ~14     0
         26        SEND_VAL                                                 ~14
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.12 ms | 1396 KiB | 15 Q