3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new SimpleXMLElement('<foo />'); $b = new SimpleXMLElement('<foo><bar /></foo>'); \var_dump($a ? 'a' : 'not a'); \var_dump($b ? 'b' : 'not b');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
filename:       /in/ta1sk
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Cfoo+%2F%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'SimpleXMLElement'
          5        SEND_VAL_EX                                              '%3Cfoo%3E%3Cbar+%2F%3E%3C%2Ffoo%3E'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'var_dump'
          9      > JMPZ                                                     !0, ->12
         10    >   QM_ASSIGN                                        ~8      'a'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~8      'not+a'
         13    >   SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'var_dump'
         16      > JMPZ                                                     !1, ->19
         17    >   QM_ASSIGN                                        ~10     'b'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~10     'not+b'
         20    >   SEND_VAL                                                 ~10
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.86 ms | 1395 KiB | 15 Q