3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert((!empty(0) ? 0 : 5) === 5); assert((0 ?? 5) === 0); // isset() is by-reference, so needs a variable. $x = 0; assert((isset($x) ? $x : 5) === 0);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
Branch analysis from position: 25
filename:       /in/Ddnjq
function name:  (null)
number of ops:  31
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2      > JMPZ                                                     <false>, ->5
          3    >   QM_ASSIGN                                        ~1      0
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~1      5
          6    >   IS_IDENTICAL                                     ~2      ~1, 5
          7        SEND_VAL                                                 ~2
          8        SEND_VAL                                                 'assert%28%28%21empty%280%29+%3F+0+%3A+5%29+%3D%3D%3D+5%29'
          9        DO_ICALL                                                 
    5    10        ASSERT_CHECK                                             
         11        INIT_FCALL                                               'assert'
         12        COALESCE                                         ~4      0
         13        QM_ASSIGN                                        ~4      5
         14        IS_IDENTICAL                                     ~5      ~4, 0
         15        SEND_VAL                                                 ~5
         16        SEND_VAL                                                 'assert%28%280+%3F%3F+5%29+%3D%3D%3D+0%29'
         17        DO_ICALL                                                 
    8    18        ASSIGN                                                   !0, 0
    9    19        ASSERT_CHECK                                             
         20        INIT_FCALL                                               'assert'
         21        ISSET_ISEMPTY_CV                                         !0
         22      > JMPZ                                                     ~8, ->25
         23    >   QM_ASSIGN                                        ~9      !0
         24      > JMP                                                      ->26
         25    >   QM_ASSIGN                                        ~9      5
         26    >   IS_IDENTICAL                                     ~10     ~9, 0
         27        SEND_VAL                                                 ~10
         28        SEND_VAL                                                 'assert%28%28isset%28%24x%29+%3F+%24x+%3A+5%29+%3D%3D%3D+0%29'
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.02 ms | 1452 KiB | 14 Q