3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = "b"; echo $id == "a" ? "Apple" : ($id == "b" ? "Bat" : ($id == "c" ? "Cat" : ($id == "d" ? "Dog" : "Others")));
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 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
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: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
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
filename:       /in/qr3vf
function name:  (null)
number of ops:  23
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'b'
    5     1        IS_EQUAL                                                 !0, 'a'
          2      > JMPZ                                                     ~2, ->5
          3    >   QM_ASSIGN                                        ~3      'Apple'
          4      > JMP                                                      ->21
          5    >   IS_EQUAL                                                 !0, 'b'
          6      > JMPZ                                                     ~4, ->9
          7    >   QM_ASSIGN                                        ~5      'Bat'
          8      > JMP                                                      ->20
          9    >   IS_EQUAL                                                 !0, 'c'
         10      > JMPZ                                                     ~6, ->13
         11    >   QM_ASSIGN                                        ~7      'Cat'
         12      > JMP                                                      ->19
         13    >   IS_EQUAL                                                 !0, 'd'
         14      > JMPZ                                                     ~8, ->17
         15    >   QM_ASSIGN                                        ~9      'Dog'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~9      'Others'
         18    >   QM_ASSIGN                                        ~7      ~9
         19    >   QM_ASSIGN                                        ~5      ~7
         20    >   QM_ASSIGN                                        ~3      ~5
         21    >   ECHO                                                     ~3
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.72 ms | 1395 KiB | 13 Q